void-packages/srcpkgs/wildmidi/template

54 lines
1.3 KiB
Bash

# Template file for 'wildmidi'
pkgname=wildmidi
version=0.4.5
revision=1
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="Érico Nogueira <ericonr@disroot.org>"
license="GPL-3.0-or-later, LGPL-3.0-only"
homepage="https://github.com/Mindwerks/wildmidi"
distfiles="https://github.com/Mindwerks/wildmidi/archive/wildmidi-${version}.tar.gz"
checksum=116c0f31d349eaa74a630ed5a9a17b6a351204877a4ed9fb9aacd9dbd7f6c874
post_install() {
vsconf ${FILESDIR}/wildmidi.cfg
}
libwildmidi_package() {
depends="freepats"
short_desc+=" - library"
conf_files="/etc/wildmidi/wildmidi.cfg"
pkg_install() {
vmove "usr/lib/*.so.*"
vinstall ${FILESDIR}/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/lib/cmake
vmove usr/share/man/man3
}
}
WildMidi_package() {
build_style=meta
short_desc+=" - dummy transitional package"
depends="wildmidi"
}
WildMidi-devel_package() {
build_style=meta
short_desc+=" - dummy transitional package"
depends="libwildmidi-devel"
}