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