mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* 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)
38 lines
1.3 KiB
Ruby
38 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Atop < Package
|
|
description 'ASCII full-screen performance monitor'
|
|
homepage 'https://www.atoptool.nl/'
|
|
version '2.10.0'
|
|
license 'GPL-2'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
source_url 'https://www.atoptool.nl/download/atop-2.10.0.tar.gz'
|
|
source_sha256 'e7a673cf2c82578e7dd82ecb0dec83fd9ecb30828b2561c28a9fa5aaf75d5f93'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '99489c26c22d314b131765b7765d638f9ca0281dc012621714df2bdf053f49ab',
|
|
armv7l: '99489c26c22d314b131765b7765d638f9ca0281dc012621714df2bdf053f49ab',
|
|
x86_64: 'e043a73b634257e9401be802a1e583e75e1242c971bc83fc81d90dc16c0fcb0c'
|
|
})
|
|
|
|
def self.patch
|
|
system "sed -i 's,/usr/bin,#{CREW_PREFIX}/bin,g' Makefile"
|
|
system "sed -i 's,/usr/sbin,#{CREW_PREFIX}/sbin,g' Makefile"
|
|
system "sed -i 's,/usr/share,#{CREW_PREFIX}/share,g' Makefile"
|
|
system "sed -i 's,/lib/systemd,#{CREW_PREFIX}/lib/systemd,g' Makefile"
|
|
system "sed -i 's,/usr/lib/,#{CREW_PREFIX}/lib/,g' Makefile"
|
|
system "sed -i 's,/usr/lib64/,#{CREW_LIB_PREFIX}/,g' Makefile"
|
|
system "sed -i 's,/etc/,#{CREW_PREFIX}/etc/,g' Makefile"
|
|
system "sed -i 's,/var/,#{CREW_PREFIX}/var/,g' Makefile"
|
|
end
|
|
|
|
def self.build
|
|
system "CFLAGS='-I#{CREW_PREFIX}/include/ncursesw' make"
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'sysvinstall'
|
|
end
|
|
end
|