upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / a52dec / trunk / PKGBUILD
blobf2303f4de55420d5f690a56ddfd31b12320b46ca
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=12
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 sha256sums=('a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33'
18             '00a094d6178cd21bfc2303ff2ac91ce656810e6fef50e77ab30e18d0f4d4a650'
19             '5151ccb8b727f3985042011f0e5c4891dd5f2a9e6f177a23d41b44bebbdd1947')
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/"