void-packages/srcpkgs/gupnp/template

37 lines
1.1 KiB
Bash

# Template file for 'gupnp'
pkgname=gupnp
version=1.6.6
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"
changelog="https://gitlab.gnome.org/GNOME/gupnp/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/gupnp/${version%.*}/gupnp-${version}.tar.xz"
checksum=c9dc50e8c78b3792d1b0e6c5c5f52c93e9345d3dae2891e311a993a574f5a04f
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
}
}