Files
chromebrew/packages/scrot.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

35 lines
1.2 KiB
Ruby

require 'package'
class Scrot < Package
description 'scrot, an acronym for (SCReen shOT) is a simple, freely distributed and open source command-line screen capture utility'
homepage 'https://github.com/resurrecting-open-source-projects/scrot'
version '1.8.1'
license 'feh and LGPL-2+'
compatibility 'all'
source_url 'https://github.com/resurrecting-open-source-projects/scrot/releases/download/1.8.1/scrot-1.8.1.tar.bz2'
source_sha256 '05f91be9a32eb912f8f2b9abdb3dca83166f77ed0a5a430b6766067ab13c3b18'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '369e6e791ae3be26802eb410e76e87ef94aacf9a22d8770f8553d08393359c19',
armv7l: '369e6e791ae3be26802eb410e76e87ef94aacf9a22d8770f8553d08393359c19',
i686: '7b2c5d0cbb359ff67b990e04c9414f7bbe694364f975e1f4a420122a43c8e443',
x86_64: '985f1c550bb81074318088309b31e5e89fca94a98c63ea4a8e946fe49172724d'
})
depends_on 'autoconf_archive' => :build
depends_on 'giblib'
depends_on 'libxcursor'
depends_on 'libxfixes'
depends_on 'optipng'
def self.build
system "./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end