diff options
author | Felix Yan | 2018-09-23 19:00:38 +0000 |
---|---|---|
committer | Felix Yan | 2018-09-23 19:00:38 +0000 |
commit | e5260c518bce80b76651e955672bbf3a7b2df3e0 (patch) | |
tree | 16142a188ce834fe29165eb929adae610a24be82 | |
parent | 4e75ea143740f8a3d7e91731dbd66691f9d0c0e7 (diff) | |
download | aur-e5260c518bce80b76651e955672bbf3a7b2df3e0.tar.gz |
upgpkg: 0.5.2-1
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -2,32 +2,31 @@ pkgbase=python-editdistance pkgname=('python-editdistance' 'python2-editdistance') -pkgver=0.4 -pkgrel=2 +pkgver=0.5.2 +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') +checkdepends=('python-nose' 'python2-nose') source=("$pkgbase-$pkgver.tar.gz::https://github.com/aflc/editdistance/archive/v$pkgver.tar.gz" LICENSE) -sha512sums=('8487d5aa2c516e4ee0aea2a63670ebd512cd443eb48c1ca99a7fe334518c0731c33ddb97ce158f5afe665a739d69c86bc247c49ad2489839cc60566385aeaf5d' +sha512sums=('62f3147c8ae77d2fb22259020b7d12e026dfb044e23e37e85d230539a3a160464d8735e5b1bb6d90eded1688ee026bb32513e9ab3661542ded6ede848060c457' '590232c1e7fa5aaaaa77573c4ea23533522177ca0ac07a0ce7f00e446d47467df2e19936ecb5e057fddc664d1daca39e2217cb5f6e3192ef5edf49b1f73e0f10') -prepare() { - cp -a editdistance-$pkgver{,-py2} - - export LC_CTYPE=en_US.UTF-8 -} - build() { - cd "$srcdir"/editdistance-$pkgver + cd editdistance-$pkgver python setup.py build - - cd "$srcdir"/editdistance-$pkgver-py2 python2 setup.py build } +check() { + cd editdistance-$pkgver + python setup.py nosetests + python2 setup.py nosetests +} + package_python-editdistance() { depends=('python') @@ -39,7 +38,7 @@ package_python-editdistance() { package_python2-editdistance() { depends=('python2') - cd editdistance-$pkgver-py2 + cd editdistance-$pkgver python2 setup.py install --root="$pkgdir" --optimize=1 install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |