b6b9658dd1
Closes: #19241 [via git-merge-pr]
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'wildmidi'
|
|
pkgname=wildmidi
|
|
version=0.4.3
|
|
revision=4
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
build_style=cmake
|
|
configure_args="-DWANT_ALSA=1 -DWANT_OSS=1 -DWANT_OPENAL=1"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="alsa-lib-devel libopenal-devel"
|
|
depends="libwildmidi"
|
|
short_desc="Simple software midi player and core softsynth library"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-3.0-or-later, LGPL-3.0-only"
|
|
homepage="http://www.mindwerks.net/projects/wildmidi"
|
|
distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
|
|
checksum=498e5a96455bb4b91b37188ad6dcb070824e92c44f5ed452b90adbaec8eef3c5
|
|
replaces="WildMidi>=0 WildMidi-devel>=0"
|
|
|
|
post_install() {
|
|
vsed -i cfg/wildmidi.cfg -e "s;/usr/share/midi/freepats;/usr/share/freepats;"
|
|
vsconf cfg/wildmidi.cfg
|
|
}
|
|
|
|
libwildmidi_package() {
|
|
depends="freepats"
|
|
short_desc+=" - library"
|
|
conf_files="/etc/wildmidi/wildmidi.cfg"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
vinstall cfg/wildmidi.cfg 644 etc/wildmidi
|
|
}
|
|
}
|
|
|
|
libwildmidi-devel_package() {
|
|
depends="libwildmidi>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|