[arch-commits] Commit in libmikmod/trunk (PKGBUILD)

Jan Steffens heftig at gemini.archlinux.org
Mon Jul 18 19:13:16 UTC 2022


    Date: Monday, July 18, 2022 @ 19:13:16
  Author: heftig
Revision: 451448

3.3.11.1-6

Modified:
  libmikmod/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++----------------
 1 file changed, 26 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-18 19:05:32 UTC (rev 451447)
+++ PKGBUILD	2022-07-18 19:13:16 UTC (rev 451448)
@@ -1,4 +1,4 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
 # Contributor: David Runge <dvzrv at archlinux.org>
 # Contributor: Allan McRae <allan at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
@@ -5,15 +5,27 @@
 
 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 @@
             '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:



More information about the arch-commits mailing list