New package: libmt32emu-2.5.1

This commit is contained in:
Joshua Krämer 2021-05-20 23:04:49 +02:00 committed by Érico Nogueira Rolim
parent 74de3c282d
commit e53e5aa4b8
3 changed files with 42 additions and 0 deletions

View file

@ -4019,3 +4019,4 @@ libXcompshad.so.3 nx-libs-3.5.99.24_1
libNX_X11.so.6 nx-libs-3.5.99.24_1
librnnoise.so.0 rnnoise-0.4.1_1
liblhasa.so.0 lhasa-0.3.1_2
libmt32emu.so.2 libmt32emu-2.5.1_1

1
srcpkgs/libmt32emu-devel Symbolic link
View file

@ -0,0 +1 @@
libmt32emu

View file

@ -0,0 +1,40 @@
# Template file for 'libmt32emu'
pkgname=libmt32emu
version=2.5.1
revision=1
_version_string=${version//./_}
wrksrc=munt-libmt32emu_${_version_string}
build_wrksrc=mt32emu
build_style=cmake
makedepends="$(vopt_if libsoxr libsoxr-devel)
$(vopt_if libsamplerate libsamplerate-devel)"
short_desc="Emulate Roland MT-32, CM-32L and LAPC-I synthesizer modules"
maintainer="Joshua Krämer <joshua@kraemer.link>"
license="LGPL-2.1-or-later"
homepage="http://munt.sourceforge.net"
distfiles="https://github.com/munt/munt/archive/libmt32emu_${_version_string}.tar.gz"
checksum=684988ab4d2b103554d9a38ad556cebc3ebc28d1d8fbb49fb4808ec9c80a2bf4
build_options="libsoxr libsamplerate"
desc_option_libsoxr="Use libsoxr for sample rate conversion"
desc_option_libsamplerate="Use libsamplerate for sample rate conversion"
build_options_default="libsoxr"
vopt_conflict libsoxr libsamplerate
if [ "$build_option_libsoxr" -o "$build_option_libsamplerate" ]; then
configure_args+=" -Dlibmt32emu_WITH_INTERNAL_RESAMPLER=off"
fi
post_install() {
rm -r ${DESTDIR}/usr/share/doc
}
libmt32emu-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}