Files
chromebrew/packages/mtdev.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* 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)
2024-01-25 11:03:31 -05:00

33 lines
1.1 KiB
Ruby

require 'package'
class Mtdev < Package
description 'The mtdev is a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol.'
homepage 'http://bitmath.org/code/mtdev'
version '1.1.5-0'
license 'MIT'
compatibility 'all'
source_url 'http://bitmath.org/code/mtdev/mtdev-1.1.5.tar.bz2'
source_sha256 '6677d5708a7948840de734d8b4675d5980d4561171c5a8e89e54adf7a13eba7f'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '6c0bbb0650a3777648f106279d11e702c75c01c2b036f113bd8cf0cab6bf463a',
armv7l: '6c0bbb0650a3777648f106279d11e702c75c01c2b036f113bd8cf0cab6bf463a',
i686: '0a18d63b9ecbd32dabc98e0b63f8514696ffd133227a42173193e828e1e7752f',
x86_64: 'ef6142c6cbaa71698acbb2cfcc3c40d5e9674931adfbb7352ce71b9b45c1027f'
})
def self.build
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--enable-shared',
'--disable-static'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end