# $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=2 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' 'xmms') 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 }