libgee08: enable gir
This commit is contained in:
parent
6a134ac99c
commit
07c71d54d5
@ -1,26 +1,38 @@
|
|||||||
# Template file for 'libgee08'
|
# Template file for 'libgee08'
|
||||||
pkgname=libgee08
|
pkgname=libgee08
|
||||||
version=0.20.1
|
version=0.20.1
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="libgee-${version}"
|
wrksrc="libgee-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static $(vopt_enable gir instrospection)"
|
build_helper="gir"
|
||||||
hostmakedepends="pkg-config intltool $(vopt_if gir 'vala-devel gobject-introspection')"
|
configure_args="--disable-static"
|
||||||
|
hostmakedepends="pkg-config intltool $(vopt_if vala 'vala')"
|
||||||
makedepends="libglib-devel"
|
makedepends="libglib-devel"
|
||||||
short_desc="GObject collection library (0.8.x API)"
|
short_desc="GObject collection library (0.8.x API)"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="http://live.gnome.org/Libgee"
|
homepage="http://live.gnome.org/Libgee"
|
||||||
distfiles="${GNOME_SITE}/libgee/${version%.*}/libgee-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/libgee/${version%.*}/libgee-${version}.tar.xz"
|
||||||
checksum=bb2802d29a518e8c6d2992884691f06ccfcc25792a5686178575c7111fea4630
|
checksum=bb2802d29a518e8c6d2992884691f06ccfcc25792a5686178575c7111fea4630
|
||||||
|
|
||||||
# Package build options
|
post_install() {
|
||||||
build_options="gir"
|
if [ "$build_option_gir" -a "$CROSS_BUILD" ]; then
|
||||||
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/share/gir-1.0 \
|
||||||
|
${DESTDIR}/usr/share
|
||||||
|
|
||||||
# Disable gir for cross builds.
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/lib/girepository-1.0 \
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
${DESTDIR}/usr/lib
|
||||||
build_options_default="gir"
|
fi
|
||||||
fi
|
}
|
||||||
|
|
||||||
|
# Package build options
|
||||||
|
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
|
||||||
|
|
||||||
libgee08-devel_package() {
|
libgee08-devel_package() {
|
||||||
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
||||||
@ -31,6 +43,8 @@ libgee08-devel_package() {
|
|||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
|
fi
|
||||||
|
if [ "$build_option_vala" ]; then
|
||||||
vmove usr/share/vala
|
vmove usr/share/vala
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user