libgtop: enable gir

This commit is contained in:
maxice8 2019-02-08 01:56:45 -02:00
parent 82aa9e50e4
commit c55b53a554
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -1,25 +1,27 @@
# Template build file for 'libgtop'. # Template file for 'libgtop'
pkgname=libgtop pkgname=libgtop
version=2.38.0 version=2.38.0
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
build_helper="gir"
configure_args="--with-libgtop-smp $(vopt_enable gir introspection)" 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" makedepends="libglib-devel libXau-devel"
short_desc="Library to retrieve system information, used in GNOME" short_desc="Library to retrieve system information, used in GNOME"
maintainer="Enno Boland <gottox@voidlinux.org>" maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://www.gnome.org/"
license="LGPL-2.1" 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 checksum=4f6c0e62bb438abfd16b4559cd2eca0251de19e291c888cdc4dc88e5ffebb612
# Package build options # Package build options
build_options="gir" build_options="gir"
# Disable gir for cross builds. case "$XBPS_TARGET_MACHINE" in
if [ -z "$CROSS_BUILD" ]; then x86_64-musl) build_options_default+=" gir" ;;
build_options_default="gir" *-musl) ;;
fi *) build_options_default+=" gir" ;;
esac
libgtop-devel_package() { libgtop-devel_package() {
depends="libglib-devel libXau-devel ${sourcepkg}>=${version}_${revision}" depends="libglib-devel libXau-devel ${sourcepkg}>=${version}_${revision}"