void-packages/srcpkgs/python-atspi/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

51 lines
1.3 KiB
Bash

# Template file for 'python-atspi'
pkgname=python-atspi
version=2.26.0
revision=1
noarch=yes
wrksrc="pyatspi-${version}"
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="at-spi2-core-devel python-gobject-devel"
depends="${makedepends//-devel/}"
pycompile_module="pyatspi"
short_desc="Python2 bindings for AT-SPI"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://www.gnome.org/"
license="GPL-2"
distfiles="${GNOME_SITE}/pyatspi/${version%.*}/pyatspi-${version}.tar.xz"
checksum=c696e47cf3d757dc515a2005ce22c7b580655a233ae6e47b39eefdfe4e8fb675
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() {
noarch=yes
pycompile_module="pyatspi"
depends="at-spi2-core python3-gobject"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove ${py3_sitelib}
}
}