Files
chromebrew/packages/libmpeg2.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

41 lines
1.1 KiB
Ruby

require 'package'
class Libmpeg2 < Package
description 'libmpeg2 is a free MPEG-2 video stream decoder.'
homepage 'https://libmpeg2.sourceforge.io/'
@_ver = '0.5.1'
version "#{@_ver}-1"
compatibility 'x86_64 aarch64 armv7l'
license 'GPL-2'
source_url 'https://salsa.debian.org/multimedia-team/mpeg2dec.git'
git_hashtag "debian/#{@_ver}-9"
binary_compression 'tpxz'
binary_sha256({
aarch64: '5b5fdf553d59930d1d3df204c2b7f32c0665b7623bc83b4a88c1ffa70f7d7e7c',
armv7l: '5b5fdf553d59930d1d3df204c2b7f32c0665b7623bc83b4a88c1ffa70f7d7e7c',
x86_64: '6d148c52e28455fdd06b2797bcd99a0a36ae21319e998bece8945189c8fcf3ae'
})
depends_on 'libx11'
def self.patch
system "for i in \$(cat debian/patches/series); do patch -Np1 -i debian/patches/\${i}; done"
# system "sed '60d' bootstrap" # Our automake version is greater than 1.5
end
def self.build
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_CONFIGURE_OPTIONS} \
--with-x"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.check
system 'make', 'check'
end
end