void-packages/srcpkgs/gssdp1.2/template

39 lines
1.1 KiB
Bash

# Template file for 'gssdp1.2'
pkgname=gssdp1.2
version=1.4.0.1
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir vapi) $(vopt_bool gir introspection)
-Dexamples=false"
hostmakedepends="pkg-config glib-devel $(vopt_if gir vala)"
makedepends="gtk4-devel libsoup-devel libglib-devel"
short_desc="GObject-based library for SSDP"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/action/show/Projects/GUPnP"
distfiles="${GNOME_SITE}/gssdp/${version%.*.*}/gssdp-${version}.tar.xz"
checksum=8676849d57fb822b8728856dbadebf3867f89ee47a0ec47a20045d011f431582
build_options="gir"
build_options_default="gir"
post_install() {
# conflicts with gssdp
rm ${DESTDIR}/usr/bin/gssdp-device-sniffer
}
gssdp1.2-devel_package() {
depends="libsoup-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
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
}
}