41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'gsound'
|
|
pkgname=gsound
|
|
version=1.0.2
|
|
revision=4
|
|
build_helper="gir"
|
|
build_style=gnu-configure
|
|
configure_args="$(vopt_enable gir introspection) $(vopt_enable vala)"
|
|
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala 'vala')"
|
|
makedepends="libcanberra-devel vala"
|
|
short_desc="Small library for playing system sounds"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/GSound"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53
|
|
|
|
build_options="gir vala"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir vala" ;;
|
|
esac
|
|
|
|
|
|
gsound-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|