python-atspi: add note for python3-atspi; revbump

Add a note to keep python3-atspi in sync with python-atspi
and revbump because it was not built with the split.
This commit is contained in:
Jürgen Buchmüller 2020-06-04 13:49:18 +02:00
parent cd08904da2
commit a2421e3a65

View file

@ -1,14 +1,13 @@
# Template file for 'python-atspi'
# Keep python3-atspi in sync
pkgname=python-atspi
version=2.32.1
revision=2
revision=4
archs=noarch
wrksrc="pyatspi-${version}"
build_style=gnu-configure
pycompile_module="pyatspi"
hostmakedepends="pkg-config python python3"
makedepends="at-spi2-core-devel python-gobject-devel
python3-gobject-devel"
hostmakedepends="pkg-config python"
makedepends="at-spi2-core-devel python-gobject-devel"
depends="at-spi2-core python-gobject"
short_desc="Python2 bindings for AT-SPI"
maintainer="Enno Boland <gottox@voidlinux.org>"
@ -16,40 +15,3 @@ license="GPL-2.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/pyatspi2"
distfiles="${GNOME_SITE}/pyatspi/${version%.*}/pyatspi-${version}.tar.xz"
checksum=84954a5bbeacc83643f05778d8beafcab8208e11b39b24637b4c4dd1f8620389
pre_configure() {
mkdir -p atspi-${py2_ver}
mv * atspi-${py2_ver} || true
cp -a atspi-${py2_ver} atspi-${py3_ver}
}
do_configure() {
for pyver in $py2_ver $py3_ver; do
cd ${wrksrc}/atspi-${pyver}
./configure ${configure_args} --with-python=/usr/bin/python${pyver}
done
}
do_build() {
for pyver in $py2_ver $py3_ver; do
cd ${wrksrc}/atspi-${pyver}
make ${makejobs}
done
}
do_install() {
for pyver in $py2_ver $py3_ver; do
cd ${wrksrc}/atspi-${pyver}
make DESTDIR=${DESTDIR} install
done
}
python3-atspi_package() {
archs=noarch
pycompile_module="pyatspi"
depends="at-spi2-core python3-gobject"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove ${py3_sitelib}
}
}