OCaml 4.14.0 rebuild
[arch-packages.git] / libmikmod / trunk / PKGBUILD
blobf4dbbc2b1b215ad1e03bfbb6daee28f6c058e399
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
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=6
9 pkgdesc="Module player library supporting many formats, including MOD, S3M, IT and XM"
10 url="http://mikmod.sourceforge.net"
11 license=(
12   GPL2
13   LGPL2.1
15 arch=(x86_64)
16 depends=(
17   glibc
18   libpulse
19   sh
21 makedepends=(
22   alsa-lib
23   cmake
24   ninja
26 provides=(libmikmod.so)
27 options=(debug)
28 source=(https://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz
29         cmake-man.diff)
30 md5sums=('f69d7dd06d307e888f466fc27f4f680b'
31          'e8a338d92027072971f49b495e87c442')
32 sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19'
33             '3331b6ff7f6f3dfd33f543d64affc10a127f61bed1160f75b07344c03f21b840')
35 prepare() {
36   cd libmikmod-$pkgver
37   patch -Np1 -i ../cmake-man.diff
40 build() {
41   cmake -S libmikmod-$pkgver -B build -G Ninja \
42     -DCMAKE_INSTALL_PREFIX=/usr \
43     -DCMAKE_BUILD_TYPE=None \
44     -DENABLE_DL=1
45   cmake --build build
48 package() {
49   DESTDIR="$pkgdir" cmake --install build
51   install -Dt "$pkgdir/usr/share/aclocal" -m644 libmikmod-$pkgver/libmikmod.m4
52   install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 \
53     libmikmod-$pkgver/{NEWS,README,TODO} build/docs/mikmod.html
54   install -Dt "$pkgdir/usr/share/info" build/docs/mikmod.info
55   install -Dt "$pkgdir/usr/share/man/man1" build/docs/libmikmod-config.1
58 # vim:set sw=2 sts=-1 et: