mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS * Rename build_extras and install_extras to configure_build_extras and configure_install_extras
33 lines
1.0 KiB
Ruby
33 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Macchanger < Package
|
|
description 'GNU MAC Changer is an utility that makes the manipulation of MAC addresses of network interfaces easier.'
|
|
homepage 'http://www.gnu.org/software/macchanger/'
|
|
version '1.7.0'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/alobbs/macchanger/releases/download/1.7.0/macchanger-1.7.0.tar.gz'
|
|
source_sha256 'dae2717c270fd5f62d790dbf80c19793c651b1b26b62c101b82d5fdf25a845bf'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: 'bee8775a633ffd9477709174b0303a5fcb432a9065f81d978580def71fc2a744',
|
|
armv7l: 'bee8775a633ffd9477709174b0303a5fcb432a9065f81d978580def71fc2a744',
|
|
i686: '0b36b17ab360fa74bce415e31404feffc0ba119c1324f2bdd073701a305d11e4',
|
|
x86_64: '954d693d8ccdcb403c0a5d29d17f5119ea3bfa62db1c59f8cf08eb1b5d495f5b'
|
|
})
|
|
|
|
def self.build
|
|
system "./configure #{CREW_CONFIGURE_OPTIONS}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.check
|
|
system 'make', 'check'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|