mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -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)
40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class F2fs_tools < Package
|
|
description 'Tools for Flash-Friendly File System F2FS'
|
|
homepage 'https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/about/'
|
|
version '1.14.0'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-#{version}.tar.gz"
|
|
source_sha256 '619263d4e2022152a1472c1d912eaae104f20bd227ce0bb9d41d1d6608094bd1'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: '68b0d173285b156e90e7b8ef1283c0ce5b3b6b7273161baa7db8dc6a331d4e4a',
|
|
armv7l: '68b0d173285b156e90e7b8ef1283c0ce5b3b6b7273161baa7db8dc6a331d4e4a',
|
|
i686: '356f89bcbcc2fc12a91cfd7e63d86042cfd194554d34921c18b3c302e7277713',
|
|
x86_64: '133257b9d9544223b40995c810154f806697ace336e4ef5ed6e51e29811d2aab'
|
|
})
|
|
|
|
depends_on 'util_linux'
|
|
|
|
def self.patch
|
|
# /usr/bin/sg_write_buffer is provided in sg3_utils"
|
|
system "sed -i '/sg_write_buffer/d' tools/Makefile.am"
|
|
end
|
|
|
|
def self.build
|
|
system 'autoreconf -fi'
|
|
system "env #{CREW_ENV_OPTIONS} \
|
|
./configure \
|
|
#{CREW_OPTIONS} \
|
|
--sbindir=#{CREW_PREFIX}/bin"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system "make DESTDIR=#{CREW_DEST_DIR} sbindir=#{CREW_PREFIX}/bin install"
|
|
end
|
|
end
|