From e3fab2be8c29c360edf8a3ffbe72d1d28c3318a8 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 22 Feb 2019 14:29:07 -0300 Subject: [PATCH] gtkspell3: enable gir, fix homepage= --- srcpkgs/gtkspell3/template | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/srcpkgs/gtkspell3/template b/srcpkgs/gtkspell3/template index 01e4585cc10..6d4fa1b0ec2 100644 --- a/srcpkgs/gtkspell3/template +++ b/srcpkgs/gtkspell3/template @@ -2,23 +2,26 @@ pkgname=gtkspell3 version=3.0.10 revision=1 -build_options="gir" build_style=gnu-configure +build_helper="gir" configure_args="--disable-silent-rules" -hostmakedepends="automake intltool libtool pkg-config - $(vopt_if gir 'gobject-introspection vala-devel')" -makedepends="enchant2-devel gtk+3-devel" +hostmakedepends="automake intltool libtool pkgconf + $(vopt_if vala vala)" +makedepends="enchant2-devel gtk+3-devel $(vopt_if vala vala)" short_desc="Highlighting and replacement of misspelled words" maintainer="beefcurtains " license="GPL-2.0-or-later" -homepage="http://${pkgname}.sourceforge.net/" +homepage="http://gtkspell.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname::-1}/${version}/${pkgname}-${version}.tar.xz" checksum=b040f63836b347eb344f5542443dc254621805072f7141d49c067ecb5a375732 -# Enable gir and vala for non-cross builds -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -fi +build_options="gir vala" + +case "$XBPS_TARGET_MACHINE" in + i686-musl|x86_64-musl) build_options_default+=" gir vala" ;; + *-musl) ;; + *) build_options_default+=" gir vala" ;; +esac gtkspell3-devel_package() { depends="${sourcepkg}>=${version}_${revision} enchant2-devel" @@ -30,6 +33,8 @@ gtkspell3-devel_package() { vmove "usr/lib/*.so" if [ "$build_option_gir" ]; then vmove usr/share/gir-1.0 + fi + if [ "$build_option_vala" ]; then vmove usr/share/vala fi }