67478b3a64
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
58 lines
1.5 KiB
Bash
58 lines
1.5 KiB
Bash
# Template file for 'python-atspi'
|
|
pkgname=python-atspi
|
|
version=2.18.0
|
|
revision=2
|
|
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="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gnome.org/"
|
|
license="GPL-2"
|
|
distfiles="${GNOME_SITE}/pyatspi/${version%.*}/pyatspi-${version}.tar.xz"
|
|
checksum=f86f03ad05d0502cd60fe8b98f746f74ce3bc208e9f3798f6a2130b3c5f4ab46
|
|
|
|
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
|
|
replaces="python3.4-atspi>=0"
|
|
pycompile_module="pyatspi"
|
|
depends="at-spi2-core python3-gobject"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
}
|
|
}
|
|
python3.4-atspi_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-atspi>=${version}_${revision}"
|
|
}
|