From 8085cbe8cb8759f18dab73c8700e888fdb2e9dc2 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 14 Mar 2019 15:30:46 -0300 Subject: [PATCH] gupnp: update to 1.2.0. --- common/shlibs | 2 +- srcpkgs/gupnp/template | 32 ++++++++++++++++++++------------ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/common/shlibs b/common/shlibs index 334b4c34d6..9d8d3489bd 100644 --- a/common/shlibs +++ b/common/shlibs @@ -757,7 +757,7 @@ libtotem-plparser-mini.so.18 libtotem-plparser-mini-3.26.1_1 libgladeui-2.so.6 libgladeui3-3.10.0_1 libtdb.so.1 libtdb-1.2.2_1 libgssdp-1.0.so.3 gssdp-0.9.0_1 -libgupnp-1.0.so.4 gupnp-0.18.0_1 +libgupnp-1.2.so.0 gupnp-1.2.0_1 libsamplerate.so.0 libsamplerate-0.1.7_1 libmms.so.0 libmms-0.6_1 libsmbclient.so.0 libsmbclient-3.5.6_1 diff --git a/srcpkgs/gupnp/template b/srcpkgs/gupnp/template index 0d7babcd86..75378e7d5d 100644 --- a/srcpkgs/gupnp/template +++ b/srcpkgs/gupnp/template @@ -1,26 +1,29 @@ # Template file for 'gupnp' pkgname=gupnp -version=1.0.3 +version=1.2.0 revision=1 -build_style=gnu-configure -configure_args="--disable-static $(vopt_enable gir introspection)" -hostmakedepends="pkg-config" +build_style=meson +build_helper="gir" +configure_args="-Dintrospection=$(vopt_if gir true false) + -Dvapi=$(vopt_if vala true false) -Dexamples=false" +hostmakedepends="pkg-config glib-devel" makedepends="libglib-devel libxml2-devel libuuid-devel gssdp-devel - $(vopt_if gir 'gobject-introspection vala-devel')" + $(vopt_if vala vala)" short_desc="GObject-based library for UPnP" maintainer="Juan RP " license="LGPL-2.1-or-later" homepage="https://wiki.gnome.org/Projects/GUPnP" distfiles="${GNOME_SITE}/gupnp/${version%.*}/gupnp-${version}.tar.xz" -checksum=794b162ee566d85eded8c3f3e8c9c99f6b718a6b812d8b56f0c2ed72ac37cbbb +checksum=fd74a2c236f3dbe6f403405cecfd0632a14c7888a0f6c679da5eefb8c2a62124 # Package build options -build_options="gir" +build_options="gir vala" -# Disable gir for cross builds. -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -fi +case "$XBPS_TARGET_MACHINE" in + i686-musl|x86_64-musl) build_options_default+=" gir vala" ;; + *-musl) ;; + *) build_options_default+=" gir vala" ;; +esac gupnp-devel_package() { depends="${makedepends} gupnp-${version}_${revision}" @@ -28,8 +31,13 @@ gupnp-devel_package() { pkg_install() { vmove usr/bin vmove usr/include - vmove usr/share vmove usr/lib/pkgconfig vmove "usr/lib/*.so" + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi + if [ "$build_option_vala" ]; then + vmove usr/share/vala + fi } }