author | Jan Alexander Steffens
<heftig@archlinux.org> 2022-07-18 19:13:16 UTC |
committer | Jan Alexander Steffens
<heftig@archlinux.org> 2022-07-18 19:13:16 UTC |
parent | 3bda46cd7836546f2aac0ca58535dd617ec59be3 |
PKGBUILD | +26 | -16 |
diff --git a/PKGBUILD b/PKGBUILD index fac8b88..f4dbbc2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,19 +1,31 @@ -# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org> # Contributor: David Runge <dvzrv@archlinux.org> # Contributor: Allan McRae <allan@archlinux.org> # Contributor: Tom Newsom <Jeepster@gmx.co.uk> pkgname=libmikmod pkgver=3.3.11.1 -pkgrel=4 +pkgrel=6 pkgdesc="Module player library supporting many formats, including MOD, S3M, IT and XM" -url=http://mikmod.sourceforge.net -license=(GPL2 LGPL2.1) +url="http://mikmod.sourceforge.net" +license=( + GPL2 + LGPL2.1 +) arch=(x86_64) -depends=(glibc libpulse sh) -makedepends=(alsa-lib cmake) +depends=( + glibc + libpulse + sh +) +makedepends=( + alsa-lib + cmake + ninja +) provides=(libmikmod.so) -source=(https://downloads.sourceforge.net/mikmod/$pkgname-$pkgver.tar.gz +options=(debug) +source=(https://downloads.sourceforge.net/mikmod/libmikmod-$pkgver.tar.gz cmake-man.diff) md5sums=('f69d7dd06d307e888f466fc27f4f680b' 'e8a338d92027072971f49b495e87c442') @@ -21,28 +33,26 @@ sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19' '3331b6ff7f6f3dfd33f543d64affc10a127f61bed1160f75b07344c03f21b840') prepare() { - cd $pkgname-$pkgver + cd libmikmod-$pkgver patch -Np1 -i ../cmake-man.diff } build() { - # cmake ignores CPPFLAGS - CFLAGS+=" $CPPFLAGS" - - cmake -H$pkgname-$pkgver -Bbuild \ + cmake -S libmikmod-$pkgver -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=None \ -DENABLE_DL=1 cmake --build build } package() { - DESTDIR="$pkgdir" cmake --build build --target install + DESTDIR="$pkgdir" cmake --install build - install -Dt "$pkgdir/usr/share/aclocal" -m644 $pkgname-$pkgver/libmikmod.m4 + install -Dt "$pkgdir/usr/share/aclocal" -m644 libmikmod-$pkgver/libmikmod.m4 install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 \ - $pkgname-$pkgver/{NEWS,README,TODO} build/docs/mikmod.html + libmikmod-$pkgver/{NEWS,README,TODO} build/docs/mikmod.html install -Dt "$pkgdir/usr/share/info" build/docs/mikmod.info install -Dt "$pkgdir/usr/share/man/man1" build/docs/libmikmod-config.1 } -# vim: ts=2 sw=2 et: +# vim:set sw=2 sts=-1 et: