diff options
Diffstat (limited to 'abs/core-testing/flac/PKGBUILD')
-rw-r--r-- | abs/core-testing/flac/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/core-testing/flac/PKGBUILD b/abs/core-testing/flac/PKGBUILD new file mode 100644 index 0000000..ce31e8b --- /dev/null +++ b/abs/core-testing/flac/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# Maintainer: Paul Mattal <paul@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> +pkgname=flac +pkgver=1.2.1 +pkgrel=1 +pkgdesc="Free Lossless Audio Codec" +license=('custom:Xiph' 'LGPL' 'GPL' 'FDL') +url="http://flac.sourceforge.net/" +arch=(i686 x86_64) +options=('!libtool') +depends=('glibc' 'libogg') +makedepends=('nasm' 'xmms') +source=(http://downloads.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \ + flac-1.2.1-gcc43.patch) +md5sums=('153c8b15a54da428d1f0fadc756c22c7' '4922379f33c86792630b624ddc83b236') + +build() { + # -j1 to get the xmms plugin working (from gentoo) + export MAKEFLAGS="-j1" + cd $startdir/src/$pkgname-$pkgver || return 1 + patch -Np1 -i $startdir/src/flac-1.2.1-gcc43.patch + ./configure --prefix=/usr --enable-shared --disable-sse \ + --disable-rpath --with-pic || return 1 + make || return 1 + make DESTDIR=$startdir/pkg install || return 1 + + # install license + install -Dm0644 $startdir/src/$pkgname-$pkgver/COPYING.Xiph \ + $startdir/pkg/usr/share/licenses/$pkgname/COPYING.Xiph +} + |