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

Felix Yan felixonmars at archlinux.org
Sun May 20 17:42:37 UTC 2018


    Date: Sunday, May 20, 2018 @ 17:42:36
  Author: felixonmars
Revision: 324630

upgpkg: python-editdistance 0.4-1

Modified:
  python-editdistance/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-20 11:36:15 UTC (rev 324629)
+++ PKGBUILD	2018-05-20 17:42:36 UTC (rev 324630)
@@ -3,30 +3,29 @@
 
 pkgbase=python-editdistance
 pkgname=('python-editdistance' 'python2-editdistance')
-pkgver=0.3.1
-_commit=3ea84a7dd3258c76aa3be851ef3d50e59c886846
+pkgver=0.4
 pkgrel=1
 pkgdesc="Fast implementation of the edit distance(Levenshtein distance)"
 arch=('x86_64')
 license=('MIT')
 url="https://github.com/aflc/editdistance"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-source=("git+https://github.com/aflc/editdistance.git#commit=$_commit"
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/aflc/editdistance/archive/v$pkgver.tar.gz"
         LICENSE)
-sha512sums=('SKIP'
+sha512sums=('8487d5aa2c516e4ee0aea2a63670ebd512cd443eb48c1ca99a7fe334518c0731c33ddb97ce158f5afe665a739d69c86bc247c49ad2489839cc60566385aeaf5d'
             '590232c1e7fa5aaaaa77573c4ea23533522177ca0ac07a0ce7f00e446d47467df2e19936ecb5e057fddc664d1daca39e2217cb5f6e3192ef5edf49b1f73e0f10')
 
 prepare() {
-  cp -a editdistance{,-py2}
+  cp -a editdistance-$pkgver{,-py2}
 
   export LC_CTYPE=en_US.UTF-8
 }
 
 build() {
-  cd "$srcdir"/editdistance
+  cd "$srcdir"/editdistance-$pkgver
   python setup.py build
 
-  cd "$srcdir"/editdistance-py2
+  cd "$srcdir"/editdistance-$pkgver-py2
   python2 setup.py build
 }
 
@@ -33,7 +32,7 @@
 package_python-editdistance() {
   depends=('python')
 
-  cd editdistance
+  cd editdistance-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -41,7 +40,7 @@
 package_python2-editdistance() {
   depends=('python2')
 
-  cd editdistance-py2
+  cd editdistance-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list