[arch-commits] Commit in bmp-wma/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sun Aug 16 16:08:11 UTC 2009
Date: Sunday, August 16, 2009 @ 12:08:10
Author: jgc
Revision: 49817
upgpkg: bmp-wma 0.1.1-3
Make it build on x86_64
Modified:
bmp-wma/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-08-16 15:40:59 UTC (rev 49816)
+++ PKGBUILD 2009-08-16 16:08:10 UTC (rev 49817)
@@ -4,23 +4,27 @@
pkgname=bmp-wma
pkgver=0.1.1
-pkgrel=2
+pkgrel=3
pkgdesc="WMA plugin for Beep Media Player"
url="http://bmp-plugins.berlios.de/novelian/project.php?p=bmp-wma"
-license="GPL"
+license=('GPL')
+arch=('x86_64' 'i686')
depends=('bmp')
groups=('bmp-plugins' 'bmp-io-plugins')
+options=(!libtool !emptydirs)
source=(http://download.berlios.de/bmp-plugins/${pkgname}-${pkgver}.tar.gz
-bmp-wma-gcc4.patch)
-md5sums=('8dcf3fcdb10e8e2e386f70745812412b' '730eba8f41e989dd8b56c18bcc826cc4')
+ bmp-wma-gcc4.patch)
+md5sums=('8dcf3fcdb10e8e2e386f70745812412b'
+ '730eba8f41e989dd8b56c18bcc826cc4')
build() {
- cd $startdir/src/${pkgname}-${pkgver}
- patch -Np0 -i ../bmp-wma-gcc4.patch
- ./configure --prefix=/usr
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np0 -i "${srcdir}/bmp-wma-gcc4.patch" || return 1
+ if [ "${CARCH}" = "x86_64" ]; then
+ export CFLAGS="${CFLAGS} -fPIC"
+ fi
+ ./configure --prefix=/usr --disable-static || return 1
+ echo '#define HAVE_LRINTF 1' >> config.h
make || return 1
- make DESTDIR=$startdir/pkg install
- rmdir $startdir/pkg/usr/bin
- # libtool-slay
- find $startdir/pkg -name '*.la' -exec rm {} \;
+ make DESTDIR="${pkgdir}" install || return 1
}
More information about the arch-commits
mailing list