1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2 # Contributor: David Runge <dvzrv@archlinux.org>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
9 pkgdesc="Module player library supporting many formats, including MOD, S3M, IT and XM"
10 url=http://mikmod.sourceforge.net
11 license=(GPL2 LGPL2.1)
13 depends=(glibc libpulse sh)
14 makedepends=(alsa-lib cmake)
15 provides=(libmikmod.so)
16 source=(https://downloads.sourceforge.net/mikmod/$pkgname-$pkgver.tar.gz
18 md5sums=('f69d7dd06d307e888f466fc27f4f680b'
19 'e8a338d92027072971f49b495e87c442')
20 sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19'
21 '3331b6ff7f6f3dfd33f543d64affc10a127f61bed1160f75b07344c03f21b840')
25 patch -Np1 -i ../cmake-man.diff
29 # cmake ignores CPPFLAGS
32 cmake -H$pkgname-$pkgver -Bbuild \
33 -DCMAKE_INSTALL_PREFIX=/usr \
39 DESTDIR="$pkgdir" cmake --build build --target install
41 install -Dt "$pkgdir/usr/share/aclocal" -m644 $pkgname-$pkgver/libmikmod.m4
42 install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 \
43 $pkgname-$pkgver/{NEWS,README,TODO} build/docs/mikmod.html
44 install -Dt "$pkgdir/usr/share/info" build/docs/mikmod.info
45 install -Dt "$pkgdir/usr/share/man/man1" build/docs/libmikmod-config.1