gsound: enable gir

This commit is contained in:
Rasmus Thomsen 2019-03-10 11:22:33 +01:00 committed by Helmut Pozimski
parent 5f661790ea
commit e750c44487
1 changed files with 10 additions and 7 deletions

View File

@ -1,12 +1,12 @@
# Template file for 'gsound' # Template file for 'gsound'
pkgname=gsound pkgname=gsound
version=1.0.2 version=1.0.2
revision=3 revision=4
build_helper="gir"
build_style=gnu-configure build_style=gnu-configure
configure_args="$(vopt_enable gir introspection) $(vopt_enable vala)" configure_args="$(vopt_enable gir introspection) $(vopt_enable vala)"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir 'gobject-introspection') hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala 'vala')"
$(vopt_if vala 'vala-devel')" makedepends="libcanberra-devel vala"
makedepends="libcanberra-devel"
short_desc="Small library for playing system sounds" short_desc="Small library for playing system sounds"
maintainer="Enno Boland <gottox@voidlinux.org>" maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later" license="LGPL-2.1-or-later"
@ -15,9 +15,12 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53 checksum=bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53
build_options="gir vala" build_options="gir vala"
if [ -z "$CROSS_BUILD" ]; then case "$XBPS_TARGET_MACHINE" in
build_options_default="gir vala" i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
fi *-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
gsound-devel_package() { gsound-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}" depends="${makedepends} ${sourcepkg}>=${version}_${revision}"