git » libmikmod.git » commit ec18491

3.3.2

author Jan Alexander Steffens
2013-10-10 01:43:45 UTC
committer Jan Alexander Steffens
2013-10-10 01:43:45 UTC
parent 652278961d657ba3c36f4b901d1c103e5c718168

3.3.2

PKGBUILD +17 -19

diff --git a/PKGBUILD b/PKGBUILD
index 96ad9f7..4c7d0f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,36 +3,34 @@
 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
 
 pkgname=libmikmod
-pkgver=3.2.0
+pkgver=3.3.2
 pkgrel=1
 pkgdesc="A portable sound library"
-license=('GPL' 'LGPL')
+license=(GPL LGPL)
 url="http://mikmod.shlomifish.org/"
-arch=('i686' 'x86_64')
-depends=('glibc' 'sh')
-makedepends=('alsa-lib')
+arch=(i686 x86_64)
+depends=(openal sh)
+makedepends=(alsa-lib)
 options=('!libtool')
 install=$pkgname.install
-source=($url/files/$pkgname-$pkgver.tar.gz
-        libmikmod-3.2.0-64bit-fix.diff
-        libmikmod-3.1.12-loopingvolume-fix.diff)
-md5sums=('96e9820d72a41fe27ff304071739696c'
-         '0bb09aac6e83e0a7fd6535961b3cff4c'
-         'a837fd876cbd2ac27419b802504489db')
+source=($url/files/$pkgname-$pkgver.tar.gz)
+sha256sums=('2311b209255bf24e95161907a16778cb054ac6d447fd8d05f1f0e41a555c7580')
 
-build() {
-  cd $pkgname-$pkgver
+prepare() {
+  mkdir build
+}
 
-  # patches from sdl_mixer-1.2.11 source
-  patch -Np1 -i $srcdir/libmikmod-3.2.0-64bit-fix.diff
-  patch -Np1 -i $srcdir/libmikmod-3.1.12-loopingvolume-fix.diff
-  
-  ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-static
+build() {
+  cd build
+  ../$pkgname-$pkgver/configure \
+    --prefix=/usr \
+    --enable-openal \
+    --disable-static
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd build
   make DESTDIR="$pkgdir" install
 }