Files
chromebrew/packages/shrinkpdf.rb
Dmitry Marakasov b078def5aa shrinkpdf: update homepage and fetch urls, fix fetch, update to 1.1 (#10078)
* shrinkpdf: update homepage and fetch urls, fix fetch, update to 1.1

* shrinkpdf: fix fetching and installation

Change proposed by: @uberhacker
2024-07-04 11:39:27 -05:00

20 lines
521 B
Ruby

require 'package'
class Shrinkpdf < Package
description 'A simple wrapper around Ghostscript to shrink PDFs (as in reduce filesize) under Linux.'
homepage 'https://github.com/aklomp/shrinkpdf'
version '1.1'
license 'BSD-3'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/aklomp/shrinkpdf.git'
git_hashtag "v#{version}"
depends_on 'ghostscript'
no_compile_needed
def self.install
FileUtils.install 'shrinkpdf.sh', "#{CREW_DEST_PREFIX}/bin/shrinkpdf", mode: 0o755
end
end