diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/lib32-libmikmod/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-libmikmod/PKGBUILD')
-rw-r--r-- | multilib/lib32-libmikmod/PKGBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/multilib/lib32-libmikmod/PKGBUILD b/multilib/lib32-libmikmod/PKGBUILD new file mode 100644 index 000000000..4f29981ef --- /dev/null +++ b/multilib/lib32-libmikmod/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Peter Lewis <plewis@aur.archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> +# Contributor: Jesse Juhani Jaara <jesse.jaara@gmail.com> + +pkgname=lib32-libmikmod +pkgver=3.1.12 +pkgrel=5 +pkgdesc="A portable sound library" +license=('GPL' 'LGPL') +url="http://sourceforge.net/projects/mikmod/" +arch=('x86_64') +depends=('libmikmod' 'lib32-glibc') +makedepends=('gcc-multilib') +options=('!libtool') +install= +source=(http://downloads.sourceforge.net/mikmod/libmikmod-${pkgver}.tar.gz + libmikmod-3.1.12-64bit-fix.diff + libmikmod-3.1.12-exitcrash-fix.diff + libmikmod-3.1.12-loopingvolume-fix.diff + libmikmod-3.1.12-md_sngchn-fix.diff + libmikmod-CVE-2009-0179.patch) +md5sums=('9f3c740298260d5f88981fc0d51f6f16' + 'dc7ffd8d6d355e9d6ec671b7f2b2adc7' + '03a4f5bfcecddf5f515672d6d477b7f7' + 'a837fd876cbd2ac27419b802504489db' + '076d39de19de36b880ed90297f1ee0d1' + 'fa91f4bc17164be32bec0ea7a73f2aaa') + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd $srcdir/libmikmod-$pkgver + + # patches from sdl_mixer-1.2.11 source + patch -Np1 -i $srcdir/libmikmod-3.1.12-64bit-fix.diff + patch -Np1 -i $srcdir/libmikmod-3.1.12-exitcrash-fix.diff + patch -Np1 -i $srcdir/libmikmod-3.1.12-loopingvolume-fix.diff + patch -Np1 -i $srcdir/libmikmod-3.1.12-md_sngchn-fix.diff + patch -Np1 -i $srcdir/libmikmod-CVE-2009-0179.patch + + ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --libdir=/usr/lib32 + make +} + +package() { + cd $srcdir/libmikmod-$pkgver + make DESTDIR=$pkgdir install + rm -rf "${pkgdir}"/usr/{include,share,bin} +} + |