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>
9 pkgdesc="A free library for decoding ATSC A/52 streams"
10 url="http://liba52.sourceforge.net/"
14 source=("http://liba52.sourceforge.net/files/${pkgname}-${pkgver}.tar.gz"
15 'a52dec-0.7.4-build.patch'
17 md5sums=('caa9f5bc44232dc8aeea773fea56be80'
18 'fa16f224a7dceb7613824380abef0052'
19 '52f57e003259a24516eaab08b64ae703')
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
32 ./configure --prefix=/usr --enable-shared
37 cd "${srcdir}/${pkgname}-${pkgver}"
38 make DESTDIR="${pkgdir}" install
39 install -m644 liba52/a52_internal.h "${pkgdir}/usr/include/a52dec/"