libkeybinder2: explicitly use python2

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-09-02 02:21:06 +02:00
parent 5825dcda2f
commit 36bb09801e
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -11,7 +11,7 @@ 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"
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() {