void-packages/srcpkgs/gupnp/template

36 lines
1.1 KiB
Bash

# Template file for 'gupnp'
pkgname=gupnp
version=1.6.3
revision=1
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 gssdp-devel libsoup3-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=4f4f418b07b81164df1f7ab612e28e4c016c2d085b8a4f39f97945f8b15ee248
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
}
}