summaryrefslogtreecommitdiff
path: root/extra/a52dec/PKGBUILD
blob: 4995e372cd59e82f5693addd4594b19a7b3fa753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 149328 2012-02-06 20:28:08Z stephane $
# Maintainer:
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>

pkgname=a52dec
pkgver=0.7.4
pkgrel=6.2
pkgdesc="A free library for decoding ATSC A/52 streams"
url="http://liba52.sourceforge.net/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
depends=('glibc')
options=(!libtool)
source=("http://liba52.sourceforge.net/files/${pkgname}-${pkgver}.tar.gz"
        'a52dec-0.7.4-build.patch'
	'configure.patch')
md5sums=('caa9f5bc44232dc8aeea773fea56be80'
         'fa16f224a7dceb7613824380abef0052'
         'ccaa978e70cc74b364486bd72fd38d1d')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  mv configure.in configure.ac
  patch -p0 -i "$srcdir/configure.patch"
  patch -Np1 -i "${srcdir}/a52dec-0.7.4-build.patch"
  ./bootstrap
  ./configure --prefix=/usr --enable-shared \
              --build=$CHOST --host=$CHOST
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m644 liba52/a52_internal.h "${pkgdir}/usr/include/a52dec/"
}