void-packages/srcpkgs/libxklavier/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

41 lines
1.2 KiB
Bash

# Template build file for 'libxklavier'.
pkgname=libxklavier
version=5.3
revision=4
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config glib-devel"
makedepends="libglib-devel libxkbfile-devel libxml2-devel libXi-devel xkeyboard-config iso-codes"
depends="xkeyboard-config iso-codes"
short_desc="Library providing high-level API for X Keyboard Extension"
homepage="http://freedesktop.org/wiki/Software/LibXklavier"
license="LGPL-2"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${GNOME_SITE}/$pkgname/5.3/$pkgname-$version.tar.xz"
checksum=ebec3bc54b5652838502b96223152fb1cd8fcb14ace5cb02d718fc3276bbd404
# 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
libxklavier-devel_package() {
depends="libglib-devel libxml2-devel>=2.7.8 ${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}