void-packages/srcpkgs/gupnp/template

37 lines
1.1 KiB
Bash

# Template file for 'gupnp'
pkgname=gupnp
version=1.2.0
revision=2
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="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=fd74a2c236f3dbe6f403405cecfd0632a14c7888a0f6c679da5eefb8c2a62124
# Package build options
build_options="gir vala"
build_options_default="gir vala"
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
}
}