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

Maxime Gauduin alucryd at archlinux.org
Wed Nov 21 09:26:37 UTC 2018


    Date: Wednesday, November 21, 2018 @ 09:26:36
  Author: alucryd
Revision: 409256

upgpkg: python-unidecode 1.0.23-1

Modified:
  python-unidecode/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++++++++++++++-----------------
 1 file changed, 21 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-21 09:16:36 UTC (rev 409255)
+++ PKGBUILD	2018-11-21 09:26:36 UTC (rev 409256)
@@ -2,25 +2,29 @@
 # Contributor: Kwpolska <kwpolska at kwpolska.tk>
 
 pkgbase=python-unidecode
-pkgname=('python-unidecode' 'python2-unidecode')
-pkgver=1.0.22
-pkgrel=2
+pkgname=(python-unidecode python2-unidecode)
+pkgver=1.0.23
+pkgrel=1
 pkgdesc='ASCII transliterations of Unicode text'
-arch=('any')
+arch=(any)
 url='https://github.com/avian2/unidecode'
-license=('GPL')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("python-unidecode-${pkgver}.tar.gz::https://github.com/avian2/unidecode/archive/unidecode-${pkgver}.tar.gz")
-sha256sums=('a650064d1fdd2bf52a57c8daab8ebe674097b335028c0aba6aecfebe18da47a9')
+license=(GPL)
+makedepends=(
+  git
+  python-setuptools
+  python2-setuptools
+)
+source=(git+https://github.com/avian2/unidecode.git#tag=unidecode-${pkgver})
+sha256sums=(SKIP)
 
 prepare() {
-  cp -r {,python-}unidecode-unidecode-${pkgver}
-   mv {,python2-}unidecode-unidecode-${pkgver}
+  cp -r {,python-}unidecode
+   mv {,python2-}unidecode
 }
 
 build() {
   for py in python{,2}; do
-    pushd ${py}-unidecode-unidecode-${pkgver}
+    pushd ${py}-unidecode
     ${py} setup.py build
     popd
   done
@@ -27,19 +31,19 @@
 }
 
 package_python-unidecode() {
-  depends=('python')
+  depends=(python)
 
-  cd python-unidecode-unidecode-${pkgver}
+  cd python-unidecode
 
-  python setup.py install --root="${pkgdir}" --optimize='1'
+  python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
 }
 
 package_python2-unidecode() {
-  depends=('python2')
+  depends=(python2)
 
-  cd python2-unidecode-unidecode-${pkgver}
+  cd python2-unidecode
 
-  python2 setup.py install --root="${pkgdir}" --optimize='1'
+  python2 setup.py install --root="${pkgdir}" --optimize='1' --skip-build
   mv "${pkgdir}"/usr/bin/unidecode{,2}
 }
 



More information about the arch-commits mailing list