[arch-commits] Commit in python-nltk/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri May 19 21:38:39 UTC 2017
Date: Friday, May 19, 2017 @ 21:38:38
Author: arojas
Revision: 228648
Update to 3.2.3
Modified:
python-nltk/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-19 21:33:27 UTC (rev 228647)
+++ PKGBUILD 2017-05-19 21:38:38 UTC (rev 228648)
@@ -5,26 +5,26 @@
pkgbase=python-nltk
pkgname=('python2-nltk' 'python-nltk')
-pkgver=3.2.2
+pkgver=3.2.3
pkgrel=1
pkgdesc='Natural language processing in Python'
arch=('any')
url='http://www.nltk.org/'
license=('APACHE')
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-source=("git+https://github.com/nltk/nltk#tag=$pkgver")
-md5sums=('SKIP')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=($pkgbase-$pkgver.tar.gz::"https://github.com/nltk/nltk/archive/$pkgver.tar.gz")
+md5sums=('90502efd00f1652895e646a9ec88de7b')
prepare() {
- cp -r nltk nltk-py2
+ cp -r nltk-$pkgver nltk-py2-$pkgver
# python 2 fix
- cd nltk-py2
+ cd nltk-py2-$pkgver
find . -type f -exec sed -i 's:^#.*env python:#!/usr/bin/env python2:' {} +
}
build() {
- (cd nltk; python setup.py build)
- (cd nltk-py2; python2 setup.py build)
+ (cd nltk-$pkgver; python setup.py build)
+ (cd nltk-py2-$pkgver; python2 setup.py build)
}
package_python-nltk() {
@@ -33,7 +33,7 @@
'python-matplotlib: used for plotting')
depends=('python-yaml')
- (cd nltk; python setup.py install --root="$pkgdir" --optimize=1)
+ (cd nltk-$pkgver; python setup.py install --root="$pkgdir" --optimize=1)
}
package_python2-nltk() {
@@ -42,8 +42,5 @@
'python2-matplotlib: used for plotting')
depends=('python2-yaml')
- (cd nltk-py2; python2 setup.py install --root="$pkgdir" --optimize=1)
+ (cd nltk-py2-$pkgver; python2 setup.py install --root="$pkgdir" --optimize=1)
}
-
-# getver: pypi.python.org/pypi/nltk
-# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list