diff --git a/srcpkgs/libkeybinder2/template b/srcpkgs/libkeybinder2/template index c5190c1e682..672bd4f995f 100644 --- a/srcpkgs/libkeybinder2/template +++ b/srcpkgs/libkeybinder2/template @@ -11,7 +11,7 @@ makedepends="pygtk-devel $(vopt_if gir gobject-introspection)" short_desc="Library for registering global keyboard shortcuts (GTK+2)" maintainer="ShadowKyogre " homepage="https://github.com/engla/keybinder" -license="GPL-2" +license="GPL-2.0-only" distfiles="https://github.com/engla/keybinder/archive/v${version}.tar.gz" checksum=6073bb5f626f75c4a6f25291b32673af02d47e735b56f9d471150d678ac0b5fa @@ -20,11 +20,12 @@ if [ -z "$CROSS_BUILD" ]; then build_options_default="gir" fi -pre_configure() { +do_configure() { NOCONFIGURE=1 ./autogen.sh if [ "$CROSS_BUILD" ]; then - sed -i "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure + sed -i "s,\(PYTHON_INCLUDES\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure fi + PYTHON=python2 ./configure ${configure_args} } libkeybinder2-devel_package() {