db-move: moved webkit2gtk from [testing] to [extra] (x86_64)
[arch-packages.git] / libmikmod / trunk / PKGBUILD
blobbbcd3c43f4c40585c6607b619b9068126727b8ec
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 source=(https://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz
28         cmake-man.diff)
29 md5sums=('f69d7dd06d307e888f466fc27f4f680b'
30          'e8a338d92027072971f49b495e87c442')
31 sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19'
32             '3331b6ff7f6f3dfd33f543d64affc10a127f61bed1160f75b07344c03f21b840')
34 prepare() {
35   cd libmikmod-$pkgver
36   patch -Np1 -i ../cmake-man.diff
39 build() {
40   cmake -S libmikmod-$pkgver -B build -G Ninja \
41     -DCMAKE_INSTALL_PREFIX=/usr \
42     -DCMAKE_BUILD_TYPE=None \
43     -DENABLE_DL=1
44   cmake --build build
47 package() {
48   DESTDIR="$pkgdir" cmake --install build
50   install -Dt "$pkgdir/usr/share/aclocal" -m644 libmikmod-$pkgver/libmikmod.m4
51   install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 \
52     libmikmod-$pkgver/{NEWS,README,TODO} build/docs/mikmod.html
53   install -Dt "$pkgdir/usr/share/info" build/docs/mikmod.info
54   install -Dt "$pkgdir/usr/share/man/man1" build/docs/libmikmod-config.1
57 # vim:set sw=2 sts=-1 et: