# Contributor: knuxify # Maintainer: knuxify pkgname=libopenmpt pkgver=0.7.2 pkgrel=0 pkgdesc="Cross-platform library to render tracker music to a PCM audio stream" url="https://lib.openmpt.org/libopenmpt/" arch="all" license="BSD-3-Clause" makedepends="flac-dev libogg-dev pulseaudio-dev libsndfile-dev libvorbis-dev mpg123-dev portaudio-dev zlib-dev" subpackages="$pkgname-dev openmpt123:_openmpt123 openmpt123-doc:_openmpt123_doc" source="https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-$pkgver+release.autotools.tar.gz" builddir="$srcdir/libopenmpt-$pkgver+release.autotools" prepare() { default_prepare # Drop +release.autotools suffix from version number; otherwise pkgconf # files don't pass abuild's requirements sed -i 's/+release.autotools//' "$builddir"/configure } build() { CXXFLAGS="$CXXFLAGS -flto=auto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-static make } check() { make check } package() { make DESTDIR="$pkgdir" install # just a readme and license and example .c rm -r "$pkgdir"/usr/share/doc } _openmpt123() { pkgdesc="Command-line module file player" amove usr/bin/openmpt123 } _openmpt123_doc() { default_doc install_if="openmpt123=$pkgver-r$pkgrel docs" } sha512sums=" 5a92641679c72694d29b2bfe46f50ad31c964426f43213b67561f67a21c5683a13a61b0810fced3c46c071f40857a2c564a68947334792e94830cbe66dc5716d libopenmpt-0.7.2+release.autotools.tar.gz "