Date: Wednesday, December 3, 2014 @ 11:10:50 Author: arodseth Revision: 123378
upgpkg: python-nltk 3.0.0-1 Modified: python-nltk/trunk/PKGBUILD ----------+ PKGBUILD | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-12-03 09:50:22 UTC (rev 123377) +++ PKGBUILD 2014-12-03 10:10:50 UTC (rev 123378) @@ -5,12 +5,7 @@ pkgbase=python-nltk pkgname=('python2-nltk' 'python-nltk') - -# NOTE: Using an alpha version because it's the first version (apart fomr 3.0a3) -# to support both python 2 and 3. It makes it better suited for a split package. -# Rumors has it that 3.0 is going to be released in about a month. -pkgver=3.0a4 - +pkgver=3.0.0 pkgrel=1 pkgdesc='Natural language processing in Python' arch=('any') @@ -17,22 +12,20 @@ url='http://www.nltk.org/' license=('APACHE') makedepends=('python-setuptools' 'python2-setuptools') -source=("http://www.nltk.org/nltk3-alpha/nltk-$pkgver.tar.gz") -sha256sums=('7fe72c386c2d3d050e3f5ffc80741906dbae9767a21558fd85e4208330dfb03e') +source=("git+https://github.com/nltk/nltk#tag=$pkgver") +md5sums=('SKIP') prepare() { - cp -r "nltk-$pkgver" "nltk-py2-$pkgver" - + cp -r nltk nltk-py2 # python 2 fix - cd "nltk-py2-$pkgver" + cd nltk-py2 find . -type f -exec sed -i 's:^#.*env python:#!/usr/bin/env python2:' {} + } build() { - cd "$srcdir/nltk-$pkgver" + cd nltk python setup.py build - - cd "$srcdir/nltk-py2-$pkgver" + cd "$srcdir/nltk-py2" python2 setup.py build } @@ -42,7 +35,7 @@ 'python-matplotlib: used for plotting') depends=('python-yaml') - cd "nltk-$pkgver" + cd nltk python setup.py install --root="$pkgdir" --optimize=1 } @@ -52,7 +45,7 @@ 'python2-matplotlib: used for plotting') depends=('python2-yaml') - cd "nltk-py2-$pkgver" + cd nltk-py2 python2 setup.py install --root="$pkgdir" --optimize=1 }