sbcl 2.1.11 rebuild
[arch-packages.git] / libmikmod / trunk / PKGBUILD
blobfac8b885e359e4ad4ef390226579d264de38f316
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>
6 pkgname=libmikmod
7 pkgver=3.3.11.1
8 pkgrel=4
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)
12 arch=(x86_64)
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
17         cmake-man.diff)
18 md5sums=('f69d7dd06d307e888f466fc27f4f680b'
19          'e8a338d92027072971f49b495e87c442')
20 sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19'
21             '3331b6ff7f6f3dfd33f543d64affc10a127f61bed1160f75b07344c03f21b840')
23 prepare() {
24   cd $pkgname-$pkgver
25   patch -Np1 -i ../cmake-man.diff
28 build() {
29   # cmake ignores CPPFLAGS
30   CFLAGS+=" $CPPFLAGS"
32   cmake -H$pkgname-$pkgver -Bbuild \
33     -DCMAKE_INSTALL_PREFIX=/usr \
34     -DENABLE_DL=1
35   cmake --build build
38 package() {
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
48 # vim: ts=2 sw=2 et: