[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2020-01-11 Thread Jan Steffens via arch-commits
Date: Saturday, January 11, 2020 @ 19:14:52
  Author: heftig
Revision: 552076

3.3.11.1-4

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |   45 -
 1 file changed, 24 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-01-11 19:14:47 UTC (rev 552075)
+++ PKGBUILD2020-01-11 19:14:52 UTC (rev 552076)
@@ -6,45 +6,48 @@
 
 pkgname=lib32-libmikmod
 pkgver=3.3.11.1
-pkgrel=3
-pkgdesc='A portable sound library'
+pkgrel=4
+pkgdesc="Module player library supporting many formats, including MOD, S3M, IT 
and XM (32-bit)"
+url=http://mikmod.sourceforge.net
 license=(
-  GPL
-  LGPL
+  GPL2
+  LGPL2.1
 )
-url=http://mikmod.sourceforge.net
 arch=(x86_64)
 depends=(
+  lib32-glibc
   lib32-libpulse
   libmikmod
 )
 makedepends=(
   lib32-alsa-lib
-  libtool-multilib
+  cmake
 )
-source=(https://downloads.sourceforge.net/mikmod/libmikmod-${pkgver}.tar.gz)
-sha256sums=(ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19)
+provides=(
+  libmikmod.so
+)
+source=(https://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
+md5sums=('f69d7dd06d307e888f466fc27f4f680b')
+sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19')
 
 build() {
-  cd libmikmod-${pkgver}
-
   export CC='gcc -m32'
   export CXX='g++ -m32'
-  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
+  export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
 
-  ./configure \
---prefix=/usr \
---libdir=/usr/lib32 \
---disable-static
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
+  # cmake ignores CPPFLAGS
+  CFLAGS+=" $CPPFLAGS"
+
+  cmake -Hlibmikmod-$pkgver -Bbuild \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DLIB_SUFFIX=32 \
+-DENABLE_DL=1
+  cmake --build build
 }
 
 package() {
-  cd libmikmod-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
-  rm -r "${pkgdir}"/usr/{include,share,bin}
+  DESTDIR="$pkgdir" cmake --build build --target install
+  rm -r "$pkgdir"/usr/{bin,include}
 }
 
 # vim: ts=2 sw=2 et:


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2019-03-11 Thread Maxime Gauduin via arch-commits
Date: Monday, March 11, 2019 @ 13:00:53
  Author: alucryd
Revision: 439756

upgpkg: lib32-libmikmod 3.3.11.1-3

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |   51 ++-
 1 file changed, 30 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-03-11 12:48:58 UTC (rev 439755)
+++ PKGBUILD2019-03-11 13:00:53 UTC (rev 439756)
@@ -1,4 +1,5 @@
-# Maintainer: Peter Lewis 
+# Maintainer: Maxime Gauduin 
+# Contributor: Peter Lewis 
 # Contributor: Allan McRae 
 # Contributor: Tom Newsom 
 # Contributor: Jesse Juhani Jaara 
@@ -5,27 +6,33 @@
 
 pkgname=lib32-libmikmod
 pkgver=3.3.11.1
-pkgrel=2
-pkgdesc="A portable sound library"
-license=(GPL LGPL)
-url="http://mikmod.sourceforge.net";
+pkgrel=3
+pkgdesc='A portable sound library'
+license=(
+  GPL
+  LGPL
+)
+url=http://mikmod.sourceforge.net
 arch=(x86_64)
-depends=(libmikmod lib32-libpulse)
-makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
-source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19')
+depends=(
+  lib32-libpulse
+  libmikmod
+)
+makedepends=(
+  lib32-alsa-lib
+  libtool-multilib
+)
+source=(https://downloads.sourceforge.net/mikmod/libmikmod-${pkgver}.tar.gz)
+sha256sums=(ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19)
 
-prepare() {
-  mkdir build
-}
-
 build() {
-  export CC="gcc -m32"
-  export CXX="g++ -m32"
-  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+  cd libmikmod-${pkgver}
 
-  cd build
-  ../libmikmod-$pkgver/configure \
+  export CC='gcc -m32'
+  export CXX='g++ -m32'
+  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
+
+  ./configure \
 --prefix=/usr \
 --libdir=/usr/lib32 \
 --disable-static
@@ -34,8 +41,10 @@
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
-  rm -r "$pkgdir"/usr/{include,share,bin}
+  cd libmikmod-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+  rm -r "${pkgdir}"/usr/{include,share,bin}
 }
 
+# vim: ts=2 sw=2 et:


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2018-11-09 Thread Felix Yan via arch-commits
Date: Friday, November 9, 2018 @ 21:33:56
  Author: felixonmars
Revision: 404679

PIE/BUILDINFO rebuild

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-11-09 21:33:39 UTC (rev 404678)
+++ PKGBUILD2018-11-09 21:33:56 UTC (rev 404679)
@@ -5,7 +5,7 @@
 
 pkgname=lib32-libmikmod
 pkgver=3.3.11.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
 url="http://mikmod.sourceforge.net";


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2017-06-23 Thread Jan Steffens
Date: Friday, June 23, 2017 @ 10:12:58
  Author: heftig
Revision: 240243

3.3.11.1-1

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-06-23 08:24:24 UTC (rev 240242)
+++ PKGBUILD2017-06-23 10:12:58 UTC (rev 240243)
@@ -5,7 +5,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.11
+pkgver=3.3.11.1
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('d1ba23ce8191ac917f9080bbc1e5e879887c01acd7bd311b1315932c4312abea')
+sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19')
 
 prepare() {
   mkdir build


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2017-06-14 Thread Jan Steffens
Date: Wednesday, June 14, 2017 @ 07:41:15
  Author: heftig
Revision: 236732

3.3.11-1

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-06-14 07:40:43 UTC (rev 236731)
+++ PKGBUILD2017-06-14 07:41:15 UTC (rev 236732)
@@ -5,7 +5,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.10
+pkgver=3.3.11
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('00b3f5298431864ebd069de793ec969cfea3ae6f340f6dfae1ff7da1ae24ef48')
+sha256sums=('d1ba23ce8191ac917f9080bbc1e5e879887c01acd7bd311b1315932c4312abea')
 
 prepare() {
   mkdir build


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2017-02-13 Thread Jan Steffens
Date: Tuesday, February 14, 2017 @ 05:06:40
  Author: heftig
Revision: 212246

3.3.10-1

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-02-14 05:06:36 UTC (rev 212245)
+++ PKGBUILD2017-02-14 05:06:40 UTC (rev 212246)
@@ -5,7 +5,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.9
+pkgver=3.3.10
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('3b65c1a5cae07a2771cbb82fc70ac75d99f4b3e35ac1d4cd2177865093df2893')
+sha256sums=('00b3f5298431864ebd069de793ec969cfea3ae6f340f6dfae1ff7da1ae24ef48')
 
 prepare() {
   mkdir build


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2016-08-16 Thread Jan Steffens
Date: Wednesday, August 17, 2016 @ 05:44:13
  Author: heftig
Revision: 186875

3.3.9-1

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-08-17 04:43:37 UTC (rev 186874)
+++ PKGBUILD2016-08-17 05:44:13 UTC (rev 186875)
@@ -5,7 +5,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.8
+pkgver=3.3.9
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('4acf6634a477d8b95f18b55a3e2e76052c149e690d202484e8b0ac7589cf37a2')
+sha256sums=('3b65c1a5cae07a2771cbb82fc70ac75d99f4b3e35ac1d4cd2177865093df2893')
 
 prepare() {
   mkdir build
@@ -30,6 +30,7 @@
 --prefix=/usr \
 --libdir=/usr/lib32 \
 --disable-static
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2015-12-15 Thread Jan Steffens
Date: Tuesday, December 15, 2015 @ 15:08:42
  Author: heftig
Revision: 153380

3.3.8

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-12-15 13:13:59 UTC (rev 153379)
+++ PKGBUILD2015-12-15 14:08:42 UTC (rev 153380)
@@ -5,7 +5,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.7
+pkgver=3.3.8
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('4cf41040a9af99cb960580210ba900c0a519f73ab97b503c780e82428b9bd9a2')
+sha256sums=('4acf6634a477d8b95f18b55a3e2e76052c149e690d202484e8b0ac7589cf37a2')
 
 prepare() {
   mkdir build


[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2014-09-06 Thread Jan Steffens
Date: Sunday, September 7, 2014 @ 02:51:17
  Author: heftig
Revision: 118508

3.3.7

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-09-07 00:11:41 UTC (rev 118507)
+++ PKGBUILD2014-09-07 00:51:17 UTC (rev 118508)
@@ -5,7 +5,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.6
+pkgver=3.3.7
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('3f363e03f7b1db75b9b6602841bbd440ed275a548e53545f980df8155de4d330')
+sha256sums=('4cf41040a9af99cb960580210ba900c0a519f73ab97b503c780e82428b9bd9a2')
 
 prepare() {
   mkdir build



[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2014-03-22 Thread Jan Steffens
Date: Saturday, March 22, 2014 @ 20:35:08
  Author: heftig
Revision: 108103

3.3.6

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-22 19:09:40 UTC (rev 108102)
+++ PKGBUILD2014-03-22 19:35:08 UTC (rev 108103)
@@ -5,7 +5,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.5
+pkgver=3.3.6
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('b714ee340a04e6867f60246f679e0f40063b92f99269b6b715c8bf19ad469fb6')
+sha256sums=('3f363e03f7b1db75b9b6602841bbd440ed275a548e53545f980df8155de4d330')
 
 prepare() {
   mkdir build



[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2014-01-10 Thread Jan Steffens
Date: Friday, January 10, 2014 @ 22:26:05
  Author: heftig
Revision: 103728

3.3.5

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-01-10 21:25:08 UTC (rev 103727)
+++ PKGBUILD2014-01-10 21:26:05 UTC (rev 103728)
@@ -5,16 +5,16 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.4
+pkgver=3.3.5
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
 url="http://mikmod.sourceforge.net";
 arch=(x86_64)
-depends=(libmikmod lib32-openal)
+depends=(libmikmod lib32-libpulse)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
-sha256sums=('2e8ca1d945ff7330741d085548a6d4e8b2f6a9d41edda773607905d8905683ae')
+sha256sums=('b714ee340a04e6867f60246f679e0f40063b92f99269b6b715c8bf19ad469fb6')
 
 prepare() {
   mkdir build
@@ -29,7 +29,6 @@
   ../libmikmod-$pkgver/configure \
 --prefix=/usr \
 --libdir=/usr/lib32 \
---enable-openal \
 --disable-static
   make
 }



[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2013-12-08 Thread Jan Steffens
Date: Monday, December 9, 2013 @ 08:42:05
  Author: heftig
Revision: 102337

3.3.4

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-12-09 05:35:34 UTC (rev 102336)
+++ PKGBUILD2013-12-09 07:42:05 UTC (rev 102337)
@@ -1,3 +1,4 @@
+# $Id$
 # Maintainer: Peter Lewis 
 # Contributor: Allan McRae 
 # Contributor: Tom Newsom 
@@ -4,17 +5,16 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.3
+pkgver=3.3.4
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
-url="http://mikmod.shlomifish.org/";
+url="http://mikmod.sourceforge.net";
 arch=(x86_64)
 depends=(libmikmod lib32-openal)
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
-options=('!libtool')
-source=($url/files/libmikmod-$pkgver.tar.gz)
-sha256sums=('79f02478c5abd8b2af73df4cc5f9d52625aa044327c01563168e270cf79b2437')
+source=(http://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz)
+sha256sums=('2e8ca1d945ff7330741d085548a6d4e8b2f6a9d41edda773607905d8905683ae')
 
 prepare() {
   mkdir build



[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2013-10-15 Thread Jan Steffens
Date: Tuesday, October 15, 2013 @ 23:53:11
  Author: heftig
Revision: 98633

3.3.3

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-15 20:54:54 UTC (rev 98632)
+++ PKGBUILD2013-10-15 21:53:11 UTC (rev 98633)
@@ -4,7 +4,7 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-libmikmod
-pkgver=3.3.2
+pkgver=3.3.3
 pkgrel=1
 pkgdesc="A portable sound library"
 license=(GPL LGPL)
@@ -14,7 +14,7 @@
 makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 options=('!libtool')
 source=($url/files/libmikmod-$pkgver.tar.gz)
-sha256sums=('2311b209255bf24e95161907a16778cb054ac6d447fd8d05f1f0e41a555c7580')
+sha256sums=('79f02478c5abd8b2af73df4cc5f9d52625aa044327c01563168e270cf79b2437')
 
 prepare() {
   mkdir build



[arch-commits] Commit in lib32-libmikmod/trunk (PKGBUILD)

2013-10-09 Thread Jan Steffens
Date: Thursday, October 10, 2013 @ 03:43:48
  Author: heftig
Revision: 98420

3.3.2

Modified:
  lib32-libmikmod/trunk/PKGBUILD

--+
 PKGBUILD |   41 -
 1 file changed, 20 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-10 01:43:24 UTC (rev 98419)
+++ PKGBUILD2013-10-10 01:43:48 UTC (rev 98420)
@@ -4,41 +4,40 @@
 # Contributor: Jesse Juhani Jaara 
 
 pkgname=lib32-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=('x86_64')
-depends=('libmikmod' 'lib32-glibc')
-makedepends=('gcc-multilib alsa-lib')
+arch=(x86_64)
+depends=(libmikmod lib32-openal)
+makedepends=(gcc-multilib libtool-multilib lib32-alsa-lib)
 options=('!libtool')
 install=$pkgname.install
-source=($url/files/libmikmod-$pkgver.tar.gz
-libmikmod-3.2.0-64bit-fix.diff
-libmikmod-3.1.12-loopingvolume-fix.diff)
-md5sums=('96e9820d72a41fe27ff304071739696c'
- '0bb09aac6e83e0a7fd6535961b3cff4c'
- 'a837fd876cbd2ac27419b802504489db')
+source=($url/files/libmikmod-$pkgver.tar.gz)
+sha256sums=('2311b209255bf24e95161907a16778cb054ac6d447fd8d05f1f0e41a555c7580')
 
+prepare() {
+  mkdir build
+}
+
 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.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 
--libdir=/usr/lib32 --disable-static
+  cd build
+  ../libmikmod-$pkgver/configure \
+--prefix=/usr \
+--libdir=/usr/lib32 \
+--enable-openal \
+--disable-static
   make
 }
 
 package() {
-  cd $srcdir/libmikmod-$pkgver
-  make DESTDIR=$pkgdir install
-  rm -rf "${pkgdir}"/usr/{include,share,bin}
+  cd build
+  make DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/{include,share,bin}
 }