void-packages/srcpkgs/libxklavier/template
2018-06-03 19:53:49 +02:00

34 lines
1.1 KiB
Bash

# Template file for 'libxklavier'
pkgname=libxklavier
version=5.4
revision=1
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
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="https://freedesktop.org/wiki/Software/LibXklavier/"
license="LGPL-2.0-or-later"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="https://people.freedesktop.org/~svu/libxklavier-${version}.tar.bz2"
checksum=17a34194df5cbcd3b7bfd0f561d95d1f723aa1c87fca56bc2c209514460a9320
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
libxklavier-devel_package() {
depends="libglib-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}