mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -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)
36 lines
928 B
Ruby
36 lines
928 B
Ruby
require 'package'
|
|
|
|
class Fakeroot_ng < Package
|
|
description 'Fakeroot-ng is a clean re-implementation of fakeroot.'
|
|
homepage 'https://fakeroot-ng.lingnu.com/index.php/Home_Page'
|
|
version '0.18'
|
|
license 'GPL-2'
|
|
compatibility 'x86_64'
|
|
case ARCH
|
|
when 'x86_64'
|
|
source_url 'https://sourceforge.net/projects/fakerootng/files/fakeroot-ng/fakeroot-ng-0.18.tar.gz'
|
|
source_sha256 '189eacda630752980d40e34b2c01ce23d839daab3d691a4706bb9eac79f7e144'
|
|
end
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
x86_64: '68ade929172b332a688333874644ce80d3af25f9604c9cc68103975c667f4fee'
|
|
})
|
|
|
|
def self.build
|
|
system './configure',
|
|
"--prefix=#{CREW_PREFIX}",
|
|
"--libdir=#{CREW_LIB_PREFIX}",
|
|
"--with-memdir=#{CREW_PREFIX}/tmp"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
|
|
def self.check
|
|
system 'make', 'check'
|
|
end
|
|
end
|