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.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Iw < Package
|
|
description 'iw is a new nl80211 based CLI configuration utility for wireless devices.'
|
|
homepage 'https://wireless.wiki.kernel.org/en/users/documentation/iw/'
|
|
version '5.19'
|
|
license 'ISC'
|
|
compatibility 'all'
|
|
source_url 'https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '12c0478d9fcfd42d93960600ebbd31bbc332246956728b7e9cba807e9926116a',
|
|
armv7l: '12c0478d9fcfd42d93960600ebbd31bbc332246956728b7e9cba807e9926116a',
|
|
i686: 'f6265a053c1ae13fd0e985ebd29684a0b74d7d0165856be5c7abc68d8105b327',
|
|
x86_64: 'c6cfb6572a7dfa450e1d9c6bc163321b04b39abca907a82e9ad7ea4eb90ac323'
|
|
})
|
|
|
|
depends_on 'libnl3'
|
|
depends_on 'glibc' # R
|
|
depends_on 'gcc_lib' # R
|
|
|
|
def self.patch
|
|
system "sed -i 's:/usr:#{CREW_PREFIX}:g' Makefile" # Change prefix to CREW_PREFIX
|
|
end
|
|
|
|
def self.build
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
|
|
def self.check
|
|
system 'make', 'check'
|
|
end
|
|
end
|