1 # Maintainer: David Runge <dvzrv@archlinux.org>
6 pkgdesc="A library to render tracker music to a PCM audio stream"
8 url="https://lib.openmpt.org/libopenmpt/"
15 libpulse libpulse.so libpulse-simple.so
16 libsndfile libsndfile.so
17 libvorbis libvorbis.so libvorbisfile.so
19 portaudio libportaudio.so
21 makedepends=(autoconf-archive doxygen help2man)
22 # TODO: remove provides/replaces on openmpt123 after 2022-05-01
23 provides=(libopenmpt.so openmpt123)
26 "$pkgname-$pkgver.tar.gz::https://lib.openmpt.org/files/libopenmpt/src/${pkgname}-${pkgver}+release.autotools.tar.gz"
28 sha512sums=('8da6cf1f2dbf683c32f45cbf884784360cced5e21f9862c96a1a679bd90b36be9a7cc59accbf82271a804722986cb81e75915f6564aeaaa248ed3e967dfdfb1a')
29 b2sums=('44cf8c5f725d2b11409d23e293dca0c151cad17c029da7f70a22366e75baa1b49b763f67d617d84a142efd3933b90344ccca5d881e5c724e2cfe0210170593dc')
32 mv -v "$pkgname-$pkgver+release.autotools" "$pkgname-$pkgver"
39 ./configure --prefix=/usr
40 # prevent excessive overlinking due to libtool
41 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
52 make DESTDIR="$pkgdir/" install
53 install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"