void-packages/srcpkgs/gupnp-dlna/template
2015-07-01 08:02:54 +02:00

40 lines
1 KiB
Bash

# Template file for 'gupnp-dlna'
pkgname=gupnp-dlna
version=0.10.3
revision=1
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config gobject-introspection"
makedepends="gst-plugins-base1-devel vala-devel"
short_desc="GUPnP DLNA"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://gupnp.org/"
distfiles="${GNOME_SITE}/$pkgname/0.10/$pkgname-$version.tar.xz"
checksum=dcbe5f5f721c76781f3d3bb1bfcdf9818df0905203d4e5759aecb9cb127872d5
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
autoreconf -fi
}
gupnp-dlna-devel_package() {
depends="gst-plugins-base1-devel ${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
vmove usr/lib/pkgconfig
}
}