upgpkg: sbcl 2.2.11-1
[arch-packages.git] / a52dec / trunk / PKGBUILD
blob2b3af873de92cdb956c8f05e9428194f11c7d481
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
2 # Maintainer: Tom Gundersen <teg@jklm.no>
3 # Contributor: Thomas Baechler <thomas@archlinux.org>
4 # Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
6 pkgname=a52dec
7 pkgver=0.7.4
8 pkgrel=11
9 pkgdesc="A free library for decoding ATSC A/52 streams"
10 url="http://liba52.sourceforge.net/"
11 arch=('x86_64')
12 license=('GPL2')
13 depends=('glibc')
14 source=("http://liba52.sourceforge.net/files/${pkgname}-${pkgver}.tar.gz"
15         'a52dec-0.7.4-build.patch'
16         'stderr.patch')
17 md5sums=('caa9f5bc44232dc8aeea773fea56be80'
18          'fa16f224a7dceb7613824380abef0052'
19          '52f57e003259a24516eaab08b64ae703')
21 prepare() {
22   cd "${pkgname}-${pkgver}"
23   patch -Np1 -i ../a52dec-0.7.4-build.patch
24   patch -Np1 -i ../stderr.patch
25   sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
26   mv configure.in configure.ac
27   ./bootstrap
30 build() {
31   cd $pkgname-$pkgver
32   ./configure --prefix=/usr --enable-shared
33   make
36 package() {
37   cd "${srcdir}/${pkgname}-${pkgver}"
38   make DESTDIR="${pkgdir}" install
39   install -m644 liba52/a52_internal.h "${pkgdir}/usr/include/a52dec/"