summaryrefslogtreecommitdiffstats
path: root/abs/core/flac/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:19:51 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:19:51 (GMT)
commitbeae0a920501c63b44f9b6749156831a9a917414 (patch)
tree0a2050c251966f1ef365263c6f5c0a121fdd612d /abs/core/flac/PKGBUILD
parentac11bd5db5c079d89b423a3b02ee7168009ad791 (diff)
downloadlinhes_pkgbuild-beae0a920501c63b44f9b6749156831a9a917414.zip
linhes_pkgbuild-beae0a920501c63b44f9b6749156831a9a917414.tar.gz
linhes_pkgbuild-beae0a920501c63b44f9b6749156831a9a917414.tar.bz2
flac 1.21
Diffstat (limited to 'abs/core/flac/PKGBUILD')
-rw-r--r--abs/core/flac/PKGBUILD69
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"
+}