diff options
Diffstat (limited to 'abs/core/flac/PKGBUILD')
-rw-r--r-- | abs/core/flac/PKGBUILD | 69 |
1 files changed, 44 insertions, 25 deletions
diff --git a/abs/core/flac/PKGBUILD b/abs/core/flac/PKGBUILD index f28b964..a6cb0c2 100644 --- a/abs/core/flac/PKGBUILD +++ b/abs/core/flac/PKGBUILD @@ -1,32 +1,51 @@ -# $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 +# $Id: PKGBUILD 135033 2011-08-09 23:31:20Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgbase=flac +pkgname=('flac' 'flac-doc') pkgver=1.2.1 -pkgrel=2 -pkgdesc="Free Lossless Audio Codec" -license=('custom:Xiph' 'LGPL' 'GPL' 'FDL') +pkgrel=3 +arch=('i686' 'x86_64') 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') +license=('BSD' 'GPL') +depends=('libogg') +makedepends=('nasm' ) +options=('!libtool' '!makeflags') +source=(http://downloads.sf.net/sourceforge/${pkgbase}/${pkgbase}-${pkgver}.tar.gz + flac-1.2.1-gcc-4.3-includes.patch) +md5sums=('153c8b15a54da428d1f0fadc756c22c7' + 'b9d245422bbc547b18a72897366bea77') +sha1sums=('bd54354900181b59db3089347cc84ad81e410b38' + '7e9f8c2ef4d9daf5ddd20df63b608fe19b8c1560') 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 + cd "${srcdir}/${pkgbase}-${pkgver}" + patch -Np1 -i "${srcdir}/flac-1.2.1-gcc-4.3-includes.patch" + ./configure --prefix=/usr --mandir=/usr/share/man --enable-shared \ + --disable-sse --disable-rpath --with-pic + make +} - # install license - install -Dm0644 $startdir/src/$pkgname-$pkgver/COPYING.Xiph \ - $startdir/pkg/usr/share/licenses/$pkgname/COPYING.Xiph +check() { + cd "${srcdir}/${pkgbase}-${pkgver}" + make check } +package_flac() { + pkgdesc="Free Lossless Audio Codec" + #optdepends=('xmms: for using the xmms plugin') + options=('!libtool' '!docs') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D -m644 COPYING.Xiph "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_flac-doc() { + pkgdesc="Developer documentation for the Free Lossless Audio Codec" + depends=('flac') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" -C doc install + install -D -m644 COPYING.Xiph "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |