45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Template file for 'gssdp'
|
|
pkgname=gssdp
|
|
version=0.14.11
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="pkg-config intltool"
|
|
makedepends="gtk+-devel libsoup-devel"
|
|
short_desc="GObject-based library for SSDP"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-2.1"
|
|
homepage="http://gupnp.org"
|
|
distfiles="${GNOME_SITE}/gssdp/${version%.*}/gssdp-$version.tar.xz"
|
|
checksum=7bf5aeaf2119fe0bec5f3632ecf39dae15bc85276c72c2ad8dd4b0e345c6535a
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
configure_args+=" --enable-introspection"
|
|
makedepends+=" gobject-introspection vala-devel"
|
|
else
|
|
configure_args+=" --disable-introspection"
|
|
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
|
|
vmove usr/share/vala
|
|
fi
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|