grilo: add vala option

This commit is contained in:
Rasmus Thomsen 2018-10-22 22:39:53 +02:00 committed by maxice8
parent 4daa2a41a3
commit 563457d710

View file

@ -1,9 +1,9 @@
# Template file for 'grilo' # Template file for 'grilo'
pkgname=grilo pkgname=grilo
version=0.3.6 version=0.3.6
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-static --disable-vala $(vopt_enable gir introspection)" configure_args="--disable-static $(vopt_enable vala vala) $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config gettext-devel intltool gnome-common hostmakedepends="automake libtool pkg-config gettext-devel intltool gnome-common
vala-devel gobject-introspection gtk-doc" vala-devel gobject-introspection gtk-doc"
makedepends="gtk+3-devel libxml2-devel libsoup-devel liboauth-devel totem-pl-parser-devel" makedepends="gtk+3-devel libxml2-devel libsoup-devel liboauth-devel totem-pl-parser-devel"
@ -15,11 +15,11 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=1e65ca82dd58020451417fde79310d4b940adc3f63ab59997419c52ed3bc9c91 checksum=1e65ca82dd58020451417fde79310d4b940adc3f63ab59997419c52ed3bc9c91
# Package build options # Package build options
build_options="gir" build_options="gir vala"
# Disable gir for cross builds. # Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir" build_options_default="gir vala"
fi fi
pre_configure() { pre_configure() {
@ -32,9 +32,11 @@ grilo-devel_package() {
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
if [ "$build_option_gir" ]; then if [ "$build_option_gir" ]; then
#vmove "usr/share/vala*/*"
vmove usr/share/gir-1.0 vmove usr/share/gir-1.0
fi fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
} }