libunique: enable gir
This commit is contained in:
parent
4bc7579a2a
commit
0a8efc8ad9
1 changed files with 12 additions and 14 deletions
|
@ -1,8 +1,9 @@
|
|||
# Template file for 'libunique'
|
||||
pkgname=libunique
|
||||
version=3.0.2
|
||||
revision=7
|
||||
revision=8
|
||||
build_style=gnu-configure
|
||||
build_helper="gir"
|
||||
configure_args="--enable-bacon=yes --enable-dbus=yes"
|
||||
hostmakedepends="pkg-config glib-devel"
|
||||
makedepends="dbus-glib-devel gtk+3-devel"
|
||||
|
@ -10,23 +11,17 @@ short_desc="Library for writing single instance applications"
|
|||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="http://live.gnome.org/LibUnique"
|
||||
distfiles="${GNOME_SITE}/$pkgname/3.0/$pkgname-$version.tar.bz2"
|
||||
distfiles="${GNOME_SITE}/${pkgname}/3.0/${pkgname}-${version}.tar.bz2"
|
||||
checksum=50269a87c7aabf1e25f01b3bbb280133138ffd7b6776289894c614a4b6ca968d
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
|
||||
if [ "$build_option_gir" ]; then
|
||||
configure_args+=" --enable-introspection"
|
||||
makedepends+=" gobject-introspection"
|
||||
else
|
||||
configure_args+=" --disable-introspection"
|
||||
fi
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64-musl) build_options_default+=" gir" ;;
|
||||
*-musl) ;;
|
||||
*) build_options_default+=" gir" ;;
|
||||
esac
|
||||
|
||||
post_configure() {
|
||||
sed -i Makefile -e "/MAINTAINER_CFLAGS/s/-Werror//"
|
||||
|
@ -39,6 +34,9 @@ libunique-devel_package() {
|
|||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/share
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share/gir-1.0
|
||||
fi
|
||||
vmove usr/share/gtk-doc
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue