From f3cda28b06ff0768909809ed949ed47c3bc4d2f2 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Thu, 24 Oct 2019 10:14:30 +0200 Subject: [PATCH] itstool: Port to Python 3 --- mingw-w64-itstool/PKGBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mingw-w64-itstool/PKGBUILD b/mingw-w64-itstool/PKGBUILD index 920af91653..b775d60145 100644 --- a/mingw-w64-itstool/PKGBUILD +++ b/mingw-w64-itstool/PKGBUILD @@ -4,14 +4,14 @@ _realname=itstool pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=2.0.6 -pkgrel=2 +pkgrel=3 arch=('any') pkgdesc="XML to PO and back again (mingw-w64)" url="http://itstool.org/" license=("GPL3") -depends=("${MINGW_PACKAGE_PREFIX}-python2" +depends=("${MINGW_PACKAGE_PREFIX}-python3" "${MINGW_PACKAGE_PREFIX}-libxml2") -makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python3-setuptools") source=(http://files.itstool.org/itstool/${_realname}-${pkgver}.tar.bz2 'reloc.patch' 'pyscript2exe.py') @@ -31,7 +31,7 @@ build() { mkdir -p "${srcdir}/build-${CHOST}" cd "${srcdir}/build-${CHOST}" - PYTHON="${MINGW_PREFIX}/bin/python2" \ + PYTHON="${MINGW_PREFIX}/bin/python3" \ ../${_realname}-${pkgver}/configure \ --host=${MINGW_CHOST} \ --target=${MINGW_CHOST} \ @@ -53,7 +53,7 @@ package() { make DESTDIR="${pkgdir}" install - ${MINGW_PREFIX}/bin/python2 "${srcdir}/pyscript2exe.py" "${pkgdir}${MINGW_PREFIX}/bin/itstool" + ${MINGW_PREFIX}/bin/python3 "${srcdir}/pyscript2exe.py" "${pkgdir}${MINGW_PREFIX}/bin/itstool" local _PRE_WIN="$(cygpath -m ${MINGW_PREFIX})" sed -e "s|${_PRE_WIN}|${MINGW_PREFIX}|g" \ -i ${pkgdir}${MINGW_PREFIX}/bin/itstool-script.py