void-packages/srcpkgs/libgee08/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

37 lines
1 KiB
Bash

# Template file for 'libgee08'
pkgname=libgee08
version=0.16.1
wrksrc="libgee-${version}"
revision=1
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir instrospection)"
hostmakedepends="pkg-config intltool $(vopt_if gir 'vala-devel gobject-introspection')"
makedepends="libglib-devel"
short_desc="GObject collection library (0.8.x API)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://live.gnome.org/Libgee"
distfiles="${GNOME_SITE}/libgee/${version%.*}/libgee-${version}.tar.xz"
checksum=d95f8ea8e78f843c71b1958fa2fb445e4a325e4821ec23d0d5108d8170e564a5
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
libgee08-devel_package() {
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}