void-packages/srcpkgs/gupnp/template

37 lines
1.1 KiB
Bash

# Template file for 'gupnp'
pkgname=gupnp
version=1.2.4
revision=3
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir introspection) $(vopt_bool gir vapi)
-Dexamples=false"
hostmakedepends="pkg-config glib-devel libxslt docbook-xsl $(vopt_if gir vala)"
makedepends="libglib-devel libxml2-devel libuuid-devel gssdp-devel
libsoup-devel"
short_desc="GObject-based library for UPnP"
maintainer="Orphaned <orphan@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=f7a0307ea51f5e44d1b832f493dd9045444a3a4e211ef85dfd9aa5dd6eaea7d1
build_options="gir"
build_options_default="gir"
gupnp-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/bin/gupnp-binding-tool*"
vmove "usr/share/man/man1/gupnp-binding-tool*"
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}