41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'gssdp'
|
|
pkgname=gssdp
|
|
version=1.0.3
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dvapi=$(vopt_if vala true false) -Dexamples=false
|
|
-Dintrospection=$(vopt_if gir true false)"
|
|
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)
|
|
$(vopt_if vala 'vala-devel')"
|
|
makedepends="gtk+3-devel libsoup-devel libglib-devel"
|
|
short_desc="GObject-based library for SSDP"
|
|
maintainer="Juan RP <xtraeme@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=211387a62bc1d99821dd0333d873a781320287f5436f91e58b2ca145b378be41
|
|
|
|
# Package build options
|
|
build_options="gir vala"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir vala"
|
|
fi
|
|
|
|
gssdp-devel_package() {
|
|
depends="libsoup-devel gssdp>=${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
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|