void-packages/srcpkgs/libxklavier/template

36 lines
1.1 KiB
Bash

# Template file for 'libxklavier'
pkgname=libxklavier
version=5.4
revision=3
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static $(vopt_enable gir introspection)"
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"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.0-or-later"
homepage="https://freedesktop.org/wiki/Software/LibXklavier/"
distfiles="https://people.freedesktop.org/~svu/libxklavier-${version}.tar.bz2"
checksum=17a34194df5cbcd3b7bfd0f561d95d1f723aa1c87fca56bc2c209514460a9320
# Package build options
build_options="gir"
build_options_default="gir"
libxklavier-devel_package() {
depends="libglib-devel libxml2-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}