gupnp-dlna: enable gir

This commit is contained in:
maxice8 2019-03-14 21:28:17 -03:00
parent 63b56fa8da
commit 09fef4f461
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -1,25 +1,27 @@
# Template file for 'gupnp-dlna' # Template file for 'gupnp-dlna'
pkgname=gupnp-dlna pkgname=gupnp-dlna
version=0.10.5 version=0.10.5
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static $(vopt_enable gir introspection)" configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config gobject-introspection" hostmakedepends="automake libtool pkg-config $(vopt_if vala vala)"
makedepends="gst-plugins-base1-devel vala-devel" makedepends="gst-plugins-base1-devel $(vopt_if vala vala)"
short_desc="GUPnP DLNA" short_desc="GUPnP DLNA"
maintainer="Juan RP <xtraeme@voidlinux.org>" maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1" license="LGPL-2.1-or-later"
homepage="http://gupnp.org/" homepage="http://gupnp.org/"
distfiles="${GNOME_SITE}/$pkgname/0.10/$pkgname-$version.tar.xz" distfiles="${GNOME_SITE}/${pkgname}/0.10/${pkgname}-${version}.tar.xz"
checksum=123e368227c11d5c17fc1aa76cbdaffa345355eb51d172cd39fc74a5b468ff6a checksum=123e368227c11d5c17fc1aa76cbdaffa345355eb51d172cd39fc74a5b468ff6a
# Package build options # Package build options
build_options="gir" build_options="gir vala"
# Disable gir for cross builds. case "$XBPS_TARGET_MACHINE" in
if [ -z "$CROSS_BUILD" ]; then i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
build_options_default="gir" *-musl) ;;
fi *) build_options_default+=" gir vala" ;;
esac
pre_configure() { pre_configure() {
autoreconf -fi autoreconf -fi
@ -31,8 +33,11 @@ gupnp-dlna-devel_package() {
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/share/gtk-doc vmove usr/share/gtk-doc
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0 vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala vmove usr/share/vala
fi fi
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig