libunique1: enable gir

This commit is contained in:
maxice8 2019-02-22 20:55:40 -03:00 committed by maxice8
parent 2e0ebb1e56
commit 7f6e1aae70

View file

@ -1,17 +1,18 @@
# Template file for 'libunique1'
pkgname=libunique1
version=1.1.6
revision=9
revision=10
wrksrc="libunique-${version}"
build_style=gnu-configure
configure_args="--disable-static --disable-dbus $(vopt_if gir gobject-introspection)"
hostmakedepends="libtool automake pkg-config glib-devel"
build_helper="gir"
configure_args="--disable-static --disable-dbus"
hostmakedepends="libtool automake pkgconf glib-devel"
makedepends="libSM-devel gtk+-devel"
short_desc="Library for writing single instance applications (GTK+2)"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://live.gnome.org/LibUnique"
distfiles="${GNOME_SITE}/libunique/1.1/libunique-$version.tar.bz2"
homepage="https://wiki.gnome.org/Attic/LibUnique"
distfiles="${GNOME_SITE}/libunique/1.1/libunique-${version}.tar.bz2"
checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
patch_args="-Np1"
@ -20,10 +21,11 @@ CFLAGS="-Wno-deprecated-declarations"
# 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
pre_configure() {
# Fix build with glib 2.30.