void-packages/srcpkgs/libkeybinder2/template

49 lines
1.2 KiB
Text

pkgname=libkeybinder2
version=0.3.0
revision=1
build_style=gnu-configure
build_options="gir"
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config intltool gnome-common gtk-doc"
makedepends="pygtk-devel $(vopt_if gir gobject-introspection)"
short_desc="Library for registering global keyboard shortcuts (GTK+2)"
maintainer="ShadowKyogre <shadowkyogre.public@gmail.com>"
homepage="https://github.com/engla/keybinder"
license="GPL-2"
distfiles="https://github.com/engla/keybinder/archive/v${version}.tar.gz"
checksum=8e8d77386b9e29556fab097c31aec643d36a33d201733b7b999179abcba7774e
wrksrc=keybinder-${version}
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
./autogen.sh
}
libkeybinder2-devel_package()
{
depends="pygtk-devel ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install()
{
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}
python-keybinder2_package()
{
depends="pygtk"
short_desc+=" - python module"
pkg_install()
{
vmove usr/lib/python2.7
}
}