vp-build/srcpkgs/grilo/template

44 lines
1.2 KiB
Bash

# Template file for 'grilo'
pkgname=grilo
version=0.3.6
revision=2
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable vala vala) $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config gettext-devel intltool gnome-common
vala-devel gobject-introspection gtk-doc"
makedepends="gtk+3-devel libxml2-devel libsoup-devel liboauth-devel totem-pl-parser-devel"
short_desc="Framework focused on making media discovery and browsing easy"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="http://live.gnome.org/Grilo"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=1e65ca82dd58020451417fde79310d4b940adc3f63ab59997419c52ed3bc9c91
# Package build options
build_options="gir vala"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
pre_configure() {
autoreconf -if
}
grilo-devel_package() {
depends="${makedepends} grilo>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}