void-packages/srcpkgs/gupnp/template
2019-03-14 16:48:36 -03:00

42 lines
1.2 KiB
Bash

# Template file for 'gupnp'
pkgname=gupnp
version=1.2.0
revision=1
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 $(vopt_if vala vala)"
makedepends="libglib-devel libxml2-devel libuuid-devel gssdp-devel"
short_desc="GObject-based library for UPnP"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GUPnP"
distfiles="${GNOME_SITE}/gupnp/${version%.*}/gupnp-${version}.tar.xz"
checksum=fd74a2c236f3dbe6f403405cecfd0632a14c7888a0f6c679da5eefb8c2a62124
# Package build options
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
gupnp-devel_package() {
depends="${makedepends} gupnp-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
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
}
}