Date: Tuesday, May 12, 2020 @ 21:33:37 Author: jelle Revision: 627244
remove unused python2 module Modified: python-unidecode/trunk/PKGBUILD ----------+ PKGBUILD | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-05-12 21:25:32 UTC (rev 627243) +++ PKGBUILD 2020-05-12 21:33:37 UTC (rev 627244) @@ -1,53 +1,30 @@ # Maintainer: Maxime Gauduin <[email protected]> # Contributor: Kwpolska <[email protected]> -pkgbase=python-unidecode -pkgname=( - python-unidecode - python2-unidecode -) +pkgname=python-unidecode pkgver=1.1.1 -pkgrel=3 +pkgrel=4 pkgdesc='ASCII transliterations of Unicode text' arch=(any) url=https://github.com/avian2/unidecode license=(GPL) +depends=(python) makedepends=( git python-setuptools - python2-setuptools ) source=(git+https://github.com/avian2/unidecode.git#tag=unidecode-${pkgver}) sha256sums=(SKIP) -prepare() { - cp -r {,python-}unidecode - mv {,python2-}unidecode -} - build() { - for py in python{,2}; do - pushd ${py}-unidecode - ${py} setup.py build - popd - done + cd unidecode + python setup.py build } -package_python-unidecode() { - depends=(python) +package() { + cd unidecode - cd python-unidecode - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build } -package_python2-unidecode() { - depends=(python2) - - cd python2-unidecode - - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - mv "${pkgdir}"/usr/bin/unidecode{,2} -} - # vim: ts=2 sw=2 et:
