author | David Runge
<dvzrv@archlinux.org> 2020-01-11 17:43:37 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2020-01-11 17:43:37 UTC |
parent | 1342560e3d20db9efe1dc99d4900c10267e9338a |
PKGBUILD | +18 | -21 |
diff --git a/PKGBUILD b/PKGBUILD index bfa348e..e09b0e0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,34 +1,31 @@ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# 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=2 -pkgdesc="A portable sound library" -license=(GPL LGPL) +pkgrel=3 +pkgdesc="A module player and library supporting many formats, including mod, s3m, it, and xm" +license=('GPL2' 'LGPL2.1') url="http://mikmod.sourceforge.net" -arch=(x86_64) -depends=(libpulse sh) -makedepends=(alsa-lib) -source=(https://downloads.sourceforge.net/mikmod/$pkgname-$pkgver.tar.gz) -sha256sums=('ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19') - -prepare() { - mkdir build -} +arch=('x86_64') +depends=('alsa-lib' 'glibc' 'libpulse' 'sh') +makedepends=('cmake') +provides=('libmikmod.so') +source=("https://downloads.sourceforge.net/mikmod/$pkgname-$pkgver.tar.gz") +sha512sums=('f2439e2b691613847cd0787dd4e050116683ce7b05c215b8afecde5c6add819ea6c18e678e258c0a80786bef463f406072de15127f64368f694287a5e8e1a9de') build() { - cd build - ../$pkgname-$pkgver/configure \ - --prefix=/usr \ - --disable-static - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool - make + cd "$pkgname-$pkgver" + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -B build \ + -S . + make -C build VERBOSE=1 } package() { - cd build - make DESTDIR="$pkgdir" install + cd "$pkgname-$pkgver" + make -C build DESTDIR="$pkgdir" install + install -vDm 644 {NEWS,README,TODO} -t "${pkgdir}/usr/share/doc/${pkgname}" } -