mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
committed by
GitHub
parent
0404074c69
commit
817d2f13c7
@@ -1,34 +1,14 @@
|
||||
require 'package'
|
||||
|
||||
class A52 < Package
|
||||
description 'liba52 is a free library for decoding ATSC A/52 streams.'
|
||||
description 'Legacy compatibility package for liba52'
|
||||
homepage 'http://liba52.sourceforge.net/'
|
||||
version '0.7.4'
|
||||
license 'GPL-2+'
|
||||
@_ver = '0.7.4-1'
|
||||
version @_ver
|
||||
license 'public-domain'
|
||||
compatibility 'all'
|
||||
source_url 'http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz'
|
||||
source_sha256 'a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33'
|
||||
|
||||
binary_url ({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a52/0.7.4_armv7l/a52-0.7.4-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a52/0.7.4_armv7l/a52-0.7.4-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a52/0.7.4_i686/a52-0.7.4-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a52/0.7.4_x86_64/a52-0.7.4-chromeos-x86_64.tar.xz',
|
||||
})
|
||||
binary_sha256 ({
|
||||
aarch64: '7f504acf9550dea90992fba392d7aedc43d872dd2bcba37cb08e369432a99e95',
|
||||
armv7l: '7f504acf9550dea90992fba392d7aedc43d872dd2bcba37cb08e369432a99e95',
|
||||
i686: '74340244a1e15054e0764f12fc36e7cae7b3d1ed44c7203555afa67500da5a43',
|
||||
x86_64: 'eb8a838b7b5284354f0e033f098e6c2270ea20eccf51df3ea5a93be6b2a4d56d',
|
||||
})
|
||||
is_fake
|
||||
|
||||
def self.build
|
||||
system "./bootstrap"
|
||||
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
|
||||
system "make"
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "make DESTDIR=#{CREW_DEST_DIR} install"
|
||||
end
|
||||
depends_on 'liba52'
|
||||
end
|
||||
|
||||
43
packages/liba52.rb
Normal file
43
packages/liba52.rb
Normal file
@@ -0,0 +1,43 @@
|
||||
require 'package'
|
||||
|
||||
class Liba52 < Package
|
||||
description 'liba52 is a free library for decoding ATSC A/52 streams.'
|
||||
homepage 'http://liba52.sourceforge.net/'
|
||||
@_ver = '0.7.4'
|
||||
version "#{@_ver}-1"
|
||||
compatibility 'all'
|
||||
license 'GPL-2+'
|
||||
source_url 'https://salsa.debian.org/multimedia-team/a52dec.git'
|
||||
git_hashtag "debian/#{@_ver}-20"
|
||||
|
||||
binary_url ({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/liba52/0.7.4-1_armv7l/liba52-0.7.4-1-chromeos-armv7l.tpxz',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/liba52/0.7.4-1_armv7l/liba52-0.7.4-1-chromeos-armv7l.tpxz',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/liba52/0.7.4-1_i686/liba52-0.7.4-1-chromeos-i686.tpxz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/liba52/0.7.4-1_x86_64/liba52-0.7.4-1-chromeos-x86_64.tpxz',
|
||||
})
|
||||
binary_sha256 ({
|
||||
aarch64: '106c1cfcb9b7eb7a0dcc891d7586abacddc422f667da68dbd8260f13c7c0d6f3',
|
||||
armv7l: '106c1cfcb9b7eb7a0dcc891d7586abacddc422f667da68dbd8260f13c7c0d6f3',
|
||||
i686: '5d8f45e6a52ee96c54330c624fd66c64b75efd58d20049fdaf7fbe317b6d1bc6',
|
||||
x86_64: '8473516c95e4e2356bf3311ea689b430117b0324b30b4aa06785eb17497136ef',
|
||||
})
|
||||
|
||||
def self.patch
|
||||
system "for i in \$(cat debian/patches/series); do patch -Np1 -i debian/patches/\${i}; done"
|
||||
end
|
||||
|
||||
def self.build
|
||||
system './bootstrap'
|
||||
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS}"
|
||||
system 'make'
|
||||
end
|
||||
|
||||
def self.install
|
||||
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
||||
end
|
||||
|
||||
def self.check
|
||||
system 'make', 'check'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user