44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'libgee'
|
|
pkgname=libgee
|
|
version=0.20.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static $(vopt_enable gir introspection)"
|
|
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala vala)"
|
|
makedepends="libglib-devel"
|
|
short_desc="GObject collection library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://live.gnome.org/Libgee"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=9e035c4b755f46bfae70ba81cdcf8328b03f554373cec8c816e8b5680f85353c
|
|
|
|
# Package build options
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
post_install() {
|
|
if [ "$build_option_gir" -a "$CROSS_BUILD" ]; then
|
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/share/gir-1.0 \
|
|
${DESTDIR}/usr/share
|
|
|
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/lib/girepository-1.0 \
|
|
${DESTDIR}/usr/lib
|
|
fi
|
|
}
|
|
|
|
libgee-devel_package() {
|
|
depends="glib-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|