[arch-commits] Commit in python-unidecode/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Tue Jan 10 16:22:32 UTC 2017


    Date: Tuesday, January 10, 2017 @ 16:22:31
  Author: alucryd
Revision: 206595

upgpkg: python-unidecode 0.04.20-1

Modified:
  python-unidecode/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-10 13:12:06 UTC (rev 206594)
+++ PKGBUILD	2017-01-10 16:22:31 UTC (rev 206595)
@@ -4,27 +4,25 @@
 
 pkgbase=python-unidecode
 pkgname=('python-unidecode' 'python2-unidecode')
-pkgver=0.04.19
-pkgrel=3
+pkgver=0.04.20
+pkgrel=1
 pkgdesc='ASCII transliterations of Unicode text'
 arch=('any')
-url='https://pypi.python.org/pypi/Unidecode/'
+url='https://github.com/avian2/unidecode'
 license=('GPL')
 makedepends=('python-setuptools' 'python2-setuptools')
-options=('!emptydirs')
-source=("https://pypi.python.org/packages/source/U/Unidecode/Unidecode-${pkgver}.tar.gz")
-sha256sums=('51477646a9169469e37e791b13ae65fcc75b7f7f570d0d3e514d077805c02e1e')
+source=("python-unidecode-${pkgver}.tar.gz::https://github.com/avian2/unidecode/archive/release-${pkgver}.tar.gz")
+sha256sums=('6f2320a4bbe55a6bba838b2792a9c993b85fedf01a089538cef4f8d6ab109b6c')
 
 prepare() {
-  for d in python{,2}-unidecode; do
-    cp -r Unidecode-${pkgver} $d
-  done
+  cp -r {,python-}unidecode-release-${pkgver}
+   mv {,python2-}unidecode-release-${pkgver}
 }
 
 build() {
-  for d in python{,2}-unidecode; do
-    pushd $d
-    ${d%-*} setup.py build
+  for py in python{,2}; do
+    pushd ${py}-unidecode-release-${pkgver}
+    ${py} setup.py build
     popd
   done
 }
@@ -32,7 +30,7 @@
 package_python-unidecode() {
   depends=('python')
 
-  cd python-unidecode
+  cd python-unidecode-release-${pkgver}
 
   python setup.py install --root="${pkgdir}" --optimize='1'
 }
@@ -40,7 +38,7 @@
 package_python2-unidecode() {
   depends=('python2')
 
-  cd python2-unidecode
+  cd python2-unidecode-release-${pkgver}
 
   python2 setup.py install --root="${pkgdir}" --optimize='1'
   mv "${pkgdir}"/usr/bin/unidecode{,2}



More information about the arch-commits mailing list