[arch-commits] Commit in nltk-data/trunk (PKGBUILD)
Alexander Rødseth
arodseth at nymeria.archlinux.org
Thu Apr 10 23:31:04 UTC 2014
Date: Friday, April 11, 2014 @ 01:31:03
Author: arodseth
Revision: 109156
upgpkg: nltk-data 3.0a3-1
Modified:
nltk-data/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-04-10 22:51:18 UTC (rev 109155)
+++ PKGBUILD 2014-04-10 23:31:03 UTC (rev 109156)
@@ -1,31 +1,35 @@
-# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Michal Bozon <michal.bozon__at__gmail.com>
pkgname=nltk-data
-pkgver=2.0
-pkgrel=7
+pkgver=3.0a3
+pkgrel=1
pkgdesc='Corpora, grammars and other linguistic data for NLTK'
arch=('any')
url='http://nltk.sourceforge.net/'
license=('custom')
-makedepends=('unzip' 'python2-nltk')
+makedepends=('unzip' 'python-nltk')
source=('LICENSE')
md5sums=('69998d5f493a60e7a1467b8003ab8e22')
package() {
- install -d ${pkgdir}/usr/share/nltk_data
- python2 -m nltk.downloader -d ${pkgdir}/usr/share/nltk_data all
+ install -d "$pkgdir/usr/share/nltk_data"
+ python -m nltk.downloader -d "$pkgdir/usr/share/nltk_data" all
- for _dir in ${pkgdir}/usr/share/nltk_data/*; do
- unzip -u ${_dir}/\*.zip -d ${_dir}
- rm -f ${_dir}/*.zip
+ for _dir in "$pkgdir/usr/share/nltk_data/"*; do
+ unzip -u "$_dir/"\*.zip -d "$_dir"
+ rm -f "$_dir/"*.zip
done
- find ${pkgdir}/usr/share/nltk_data/ -type f -exec chmod 0644 {} \;
- find ${pkgdir}/usr/share/nltk_data/ -type d -exec chmod 0755 {} \;
+ find "$pkgdir/usr/share/nltk_data/" -type f -exec chmod 0644 {} \;
+ 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 -d "$pkgdir/usr/share/licenses/nltk-data"
+ install -m644 "$srcdir/LICENSE" \
+ "$pkgdir/usr/share/licenses/nltk-data"
}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list