mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
50 lines
2.1 KiB
Ruby
50 lines
2.1 KiB
Ruby
require 'package'
|
|
|
|
class Squashfs < Package
|
|
description 'Squashfs is a compressed read-only filesystem for Linux.'
|
|
homepage 'http://squashfs.sourceforge.net/'
|
|
version '4.3'
|
|
source_url 'https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.3/squashfs4.3.tar.gz'
|
|
source_sha256 '0d605512437b1eb800b4736791559295ee5f60177e102e4d4ccd0ee241a5f3f6'
|
|
|
|
binary_url ({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/squashfs-4.3-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/squashfs-4.3-chromeos-armv7l.tar.xz',
|
|
i686: 'https://dl.bintray.com/chromebrew/chromebrew/squashfs-4.3-chromeos-i686.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/squashfs-4.3-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256 ({
|
|
aarch64: '46d88da52b018f54fc8c177f3d13ba3f925167058ff4c9c20628683be8a7142c',
|
|
armv7l: '46d88da52b018f54fc8c177f3d13ba3f925167058ff4c9c20628683be8a7142c',
|
|
i686: '913c4ef36694ba34eb9542ead201e59aeaa4ebdd4cec0a6fc78395fbe19a85ca',
|
|
x86_64: 'b9f8bb91f7ab76540d0a8484cd3bc7ce64f90bea6279474d1e4a8f32c79f990f',
|
|
})
|
|
|
|
depends_on 'compressdoc' => :build
|
|
depends_on 'help2man' => :build
|
|
depends_on 'lz4'
|
|
depends_on 'lzo'
|
|
depends_on 'xzutils'
|
|
depends_on 'zlibpkg'
|
|
|
|
def self.build
|
|
FileUtils.cd('squashfs-tools') do
|
|
system "sed -i '5iLZ4_SUPPORT = 1' Makefile"
|
|
system "sed -i '6iLZO_SUPPORT = 1' Makefile"
|
|
system "sed -i '7iXZ_SUPPORT = 1' Makefile"
|
|
system "make"
|
|
end
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.cd('squashfs-tools') do
|
|
system "mkdir -p #{CREW_DEST_PREFIX}/share/man/man1"
|
|
system "install -Dm755 mksquashfs #{CREW_DEST_PREFIX}/bin/mksquashfs"
|
|
system "install -Dm755 unsquashfs #{CREW_DEST_PREFIX}/bin/unsquashfs"
|
|
system "help2man ./mksquashfs -N --no-discard-stderr > #{CREW_DEST_PREFIX}/share/man/man1/mksquashfs.1"
|
|
system "help2man ./unsquashfs -N --no-discard-stderr > #{CREW_DEST_PREFIX}/share/man/man1/unsquashfs.1"
|
|
system "compressdoc --gzip -9 #{CREW_DEST_PREFIX}/share/man/man1"
|
|
end
|
|
end
|
|
end
|