From c55b53a5543524a7f887f4a468857383b1b55591 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 8 Feb 2019 01:56:45 -0200 Subject: [PATCH] libgtop: enable gir --- srcpkgs/libgtop/template | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/srcpkgs/libgtop/template b/srcpkgs/libgtop/template index 63718a27967..3f1e9e3b614 100644 --- a/srcpkgs/libgtop/template +++ b/srcpkgs/libgtop/template @@ -1,25 +1,27 @@ -# Template build file for 'libgtop'. +# Template file for 'libgtop' pkgname=libgtop version=2.38.0 -revision=1 +revision=2 build_style=gnu-configure +build_helper="gir" configure_args="--with-libgtop-smp $(vopt_enable gir introspection)" -hostmakedepends="pkg-config intltool $(vopt_if gir gobject-introspection)" +hostmakedepends="pkg-config intltool" makedepends="libglib-devel libXau-devel" short_desc="Library to retrieve system information, used in GNOME" maintainer="Enno Boland " -homepage="http://www.gnome.org/" license="LGPL-2.1" -distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" +homepage="http://www.gnome.org/" +distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" checksum=4f6c0e62bb438abfd16b4559cd2eca0251de19e291c888cdc4dc88e5ffebb612 # Package build options build_options="gir" -# Disable gir for cross builds. -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -fi +case "$XBPS_TARGET_MACHINE" in + x86_64-musl) build_options_default+=" gir" ;; + *-musl) ;; + *) build_options_default+=" gir" ;; +esac libgtop-devel_package() { depends="libglib-devel libXau-devel ${sourcepkg}>=${version}_${revision}"