2014-06-25 11:37:47 +02:00
|
|
|
# Template file for 'python-atspi'
|
|
|
|
pkgname=python-atspi
|
2015-06-06 14:49:44 +02:00
|
|
|
version=2.16.0
|
2015-06-07 06:27:37 +02:00
|
|
|
revision=2
|
2014-06-25 11:37:47 +02:00
|
|
|
noarch=yes
|
2015-06-07 06:28:52 +02:00
|
|
|
nocross=yes
|
2014-06-25 11:37:47 +02:00
|
|
|
wrksrc="pyatspi-${version}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
python_versions="2.7 3.4"
|
2015-01-25 10:06:25 +01:00
|
|
|
hostmakedepends="pkg-config"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="at-spi2-core-devel python-gobject-devel"
|
2014-06-25 16:43:53 +02:00
|
|
|
depends="${makedepends//-devel/}"
|
2014-06-25 11:37:47 +02:00
|
|
|
replaces="pyatspi>=0"
|
|
|
|
pycompile_module="pyatspi"
|
|
|
|
short_desc="Python2 bindings for AT-SPI"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-06-25 11:37:47 +02:00
|
|
|
homepage="http://www.gnome.org/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="${GNOME_SITE}/pyatspi/${version%.*}/pyatspi-${version}.tar.xz"
|
2015-06-06 14:49:44 +02:00
|
|
|
checksum=a67a857ca5eaf16fc059d9be47d0850edd93bffdd777c1b7612ecc95f6e3b4a0
|
2014-06-25 11:37:47 +02:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
mkdir ${wrksrc}/python2-build
|
|
|
|
cd ${wrksrc}/python2-build
|
|
|
|
../configure ${configure_args} --with-python=/usr/bin/python
|
|
|
|
|
|
|
|
mkdir ${wrksrc}/python3.4-build
|
|
|
|
cd ${wrksrc}/python3.4-build
|
|
|
|
../configure ${configure_args} --with-python=/usr/bin/python3.4
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cd ${wrksrc}/python2-build
|
|
|
|
make ${makejobs}
|
|
|
|
|
|
|
|
cd ${wrksrc}/python3.4-build
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
cd ${wrksrc}/python2-build
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
cd ${wrksrc}/python3.4-build
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-atspi_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="at-spi2-core>=2.10 python3.4-gobject>=3.10"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="pyatspi"
|
|
|
|
short_desc="${short_desc//Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|