Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
chromebrew
Commits
67e9141e
Commit
67e9141e
authored
Dec 28, 2017
by
Gangstead
Committed by
GitHub
Dec 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1576 from uberhacker/add-shrinkpdf-package
Add shrinkpdf package
parents
f1287512
6bba16d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
packages/shrinkpdf.rb
packages/shrinkpdf.rb
+22
-0
No files found.
packages/shrinkpdf.rb
0 → 100644
View file @
67e9141e
require
'package'
class
Shrinkpdf
<
Package
description
'A simple wrapper around Ghostscript to shrink PDFs (as in reduce filesize) under Linux.'
homepage
'http://alfredklomp.com/programming/shrinkpdf/'
version
'2014'
source_url
'http://alfredklomp.com/programming/shrinkpdf/index.html'
source_sha256
'cdc74b28d8ad757fa2cc9d8782031fe2325a17d3f4fd6080c05ca62790e5c690'
binary_url
({
})
binary_sha256
({
})
depends_on
'ghostscript'
def
self
.
install
system
'wget http://alfredklomp.com/programming/shrinkpdf/shrinkpdf.sh'
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
'shrinkpdf.sh'
)
)
==
'bf313e47e81ce4c088704840554f2f643597db1b3d6937a0af5ed43368b1ccc7'
system
"install -Dm755 shrinkpdf.sh
#{
CREW_DEST_PREFIX
}
/bin/shrinkpdf"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment