1 # $Id: PKGBUILD 5600 2008-07-18 22:05:50Z jgc $
2 # Maintainer: Thomas Baechler <thomas@archlinux.org>
3 # contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
4 # contributor to svn version: Blissful <narthana.epa@gmail.com>
9 pkgdesc="liba52 is a free library for decoding ATSC A/52 streams."
10 arch=('i686' 'x86_64')
13 provides=('a52dec=0.7.5')
15 makedepends=('subversion')
17 source=(bootstrap.diff)
18 url="http://liba52.sourceforge.net/"
19 md5sums=('96281ab580644ffc10d2f71182a3e4c3')
21 _svntrunk=svn://svn.videolan.org/liba52/trunk/
27 if [ -d $_svnmod/.svn ]; then
28 (cd $_svnmod && svn up -r $pkgver)
30 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33 msg "SVN checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf ${srcdir}/$_svnmod-build
37 cp -r $_svnmod $_svnmod-build
40 patch -Np1 < ${srcdir}/bootstrap.diff || return 1 #for automake 1.11 support
42 ./bootstrap || return 1
43 ./configure --prefix=/usr --enable-shared || return 1
45 make DESTDIR=${pkgdir} install || return 1
46 rm -rf ${srcdir}/$_svnmod-build