void-packages/srcpkgs/gupnp/template

41 lines
1.1 KiB
Text

# Template file for 'gupnp'
pkgname=gupnp
version=0.20.12
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
makedepends="libglib-devel libxml2-devel libuuid-devel gssdp-devel"
short_desc="GObject-based library for UPnP"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://gupnp.org/"
distfiles="${GNOME_SITE}/gupnp/${version%.*}/gupnp-${version}.tar.xz"
checksum=205d47b950a1b7190df1115f454cb38a44d71aacfec75d4287299e400e139b69
# 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>=0.22"
else
configure_args+=" --disable-introspection"
fi
gupnp-devel_package() {
depends="gssdp-devel glib-devel libxml2-devel libuuid-devel gupnp>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}