Date: Friday, January 26, 2018 @ 19:20:30 Author: arodseth Revision: 287257
upgpkg: nltk-data 3.2.5-1 Modified: nltk-data/trunk/PKGBUILD ----------+ PKGBUILD | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-26 19:20:11 UTC (rev 287256) +++ PKGBUILD 2018-01-26 19:20:30 UTC (rev 287257) @@ -5,18 +5,21 @@ # Contributor: Michal Bozon <michal.bozon__at__gmail.com> pkgname=nltk-data -pkgver=3.2.1 +pkgver=3.2.5 pkgrel=1 pkgdesc='Corpora, grammars and other linguistic data for NLTK' arch=('any') url='http://www.nltk.org/data.html' license=('custom') -makedepends=('unzip' "python-nltk=$pkgver") +makedepends=("python-nltk=$pkgver" 'python-six' 'unzip') source=('LICENSE') md5sums=('69998d5f493a60e7a1467b8003ab8e22') package() { install -d "$pkgdir/usr/share/nltk_data" + + # Downloading the data. + # TODO: Do what the python script does, but in this PKGBUILD python -m nltk.downloader -d "$pkgdir/usr/share/nltk_data" all for _dir in "$pkgdir/usr/share/nltk_data/"*; do @@ -28,8 +31,7 @@ find "$pkgdir/usr/share/nltk_data/" -type d -exec chmod 0755 {} \; install -d "$pkgdir/usr/share/licenses/nltk-data" - install -m644 "$srcdir/LICENSE" \ - "$pkgdir/usr/share/licenses/nltk-data" + install -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/nltk-data" } -# vim:set ts=2 sw=2 et: +# vim: ts=2 sw=2 et: