diff options
Diffstat (limited to 'extra/libmad')
-rw-r--r-- | extra/libmad/PKGBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/extra/libmad/PKGBUILD b/extra/libmad/PKGBUILD index f0715b130..5822c0230 100644 --- a/extra/libmad/PKGBUILD +++ b/extra/libmad/PKGBUILD @@ -1,15 +1,14 @@ -# $Id: PKGBUILD 149402 2012-02-07 14:56:23Z eric $ +# $Id: PKGBUILD 197260 2013-10-24 19:49:09Z eric $ # Maintainer: Eric BĂ©langer <eric@archlinux.org> pkgname=libmad pkgver=0.15.1b -pkgrel=6.1 +pkgrel=7 pkgdesc="A high-quality MPEG audio decoder" arch=('i686' 'x86_64' 'mips64el') url="http://www.underbit.com/products/mad/" license=('GPL') depends=('glibc') -options=('!libtool') source=(http://downloads.sourceforge.net/sourceforge/mad/${pkgname}-${pkgver}.tar.gz{,.sign} libmad.patch amd64-64bit.diff frame_length.diff optimize.diff) sha1sums=('cac19cd00e1a907f3150cc040ccc077783496d76' @@ -19,12 +18,16 @@ sha1sums=('cac19cd00e1a907f3150cc040ccc077783496d76' 'b9c61ecacc6a6d47425d66f33327e0634cd8a33c' '3d5b958244ef0395ccdcb00344f2cf301ca07e34') -build() { - cd "${srcdir}/${pkgname}-${pkgver}" +prepare() { + cd ${pkgname}-${pkgver} patch -p1 -i "${srcdir}/libmad.patch" patch -p1 -i "${srcdir}/amd64-64bit.diff" patch -p1 -i "${srcdir}/frame_length.diff" patch -p1 -i "${srcdir}/optimize.diff" +} + +build() { + cd ${pkgname}-${pkgver} CFLAGS="$CFLAGS -ftree-vectorize -ftree-vectorizer-verbose=1" autoconf ./configure --prefix=/usr --enable-fpm=default @@ -32,6 +35,6 @@ build() { } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install } |