python-unidecode: Update to 1.3.2

This commit is contained in:
Konstantin Podsvirov
2021-10-09 11:36:53 +03:00
parent 78e2b21b50
commit ace2e538b9

View File

@@ -3,7 +3,7 @@
_realname=unidecode
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=1.3.0
pkgver=1.3.2
pkgrel=1
pkgdesc='ASCII transliterations of Unicode text (mingw-w64)'
arch=('any')
@@ -13,22 +13,22 @@ license=('GPL')
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("unidecode-unidecode-${pkgver}.tar.gz"::"https://github.com/avian2/unidecode/archive/unidecode-${pkgver}.tar.gz")
sha256sums=('a01305bf73fdf77970d765439099e9a01c25de33a7cc003f5f42c1f594b2bd97')
sha256sums=('602bb20f89c12d9d745045becfbd48873f8ef500fb22da26d4ade4b92876c58e')
prepare() {
cd "${srcdir}"
rm -rf "python-build-${CARCH}" | true
cp -r "unidecode-unidecode-${pkgver}" "python-build-${CARCH}"
rm -rf "python-build-${MSYSTEM}" | true
cp -r "unidecode-unidecode-${pkgver}" "python-build-${MSYSTEM}"
}
build() {
msg "Python build for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
msg "Python build for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py build
}
package() {
cd "${srcdir}/python-build-${CARCH}"
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1 --skip-build