35 lines
980 B
Bash
35 lines
980 B
Bash
|
# Template file for 'ZMusic'
|
||
|
pkgname=ZMusic
|
||
|
version=1.1.3
|
||
|
revision=1
|
||
|
build_style=cmake
|
||
|
configure_args="-DGME_INCLUDE_DIR=/usr/include -DGME_LIBRARIES=gme"
|
||
|
hostmakedepends="pkg-config"
|
||
|
makedepends="zlib-devel alsa-lib-devel libgme-devel libopenal-devel libsndfile-devel"
|
||
|
# these are dlopened
|
||
|
depends="libfluidsynth libopenal libsndfile"
|
||
|
short_desc="GZDoom's music system"
|
||
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
||
|
license="GPL-3.0-or-later"
|
||
|
homepage="https://github.com/coelckers/ZMusic"
|
||
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||
|
checksum=5f432b022e023175eae7701625f79287e9ffe889a444179681381026b4fb93bf
|
||
|
|
||
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||
|
makedepends+=" musl-fts-devel"
|
||
|
fi
|
||
|
|
||
|
post_install() {
|
||
|
vmkdir usr/share/licenses/${pkgname}
|
||
|
vcopy "licenses/*" usr/share/licenses/${pkgname}/
|
||
|
}
|
||
|
|
||
|
ZMusic-devel_package() {
|
||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove "usr/lib/*.so"
|
||
|
}
|
||
|
}
|