diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2015-04-13 08:31:32 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-19 11:23:58 +0700 |
commit | 95dea3c972621d297090306a63d221b9982b237a (patch) | |
tree | caf9444ddf80c9ae7e0b22fa7ffdadc43d1d5e79 /network | |
parent | e9fa7305da6bf5f13dbb21b4c350d93447c065f8 (diff) | |
download | slackbuilds-95dea3c972621d297090306a63d221b9982b237a.tar.gz |
network/translate: Updated for version 2.0.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'network')
-rw-r--r-- | network/translate/README | 10 | ||||
-rw-r--r-- | network/translate/slack-desc | 6 | ||||
-rw-r--r-- | network/translate/translate.SlackBuild | 20 | ||||
-rw-r--r-- | network/translate/translate.info | 6 |
4 files changed, 11 insertions, 31 deletions
diff --git a/network/translate/README b/network/translate/README index f143bc4cd2..7758d3db32 100644 --- a/network/translate/README +++ b/network/translate/README @@ -1,7 +1,3 @@ -Google translate as Python module & command line tool. -No key, no authentication whatsoever. The default target -language is Simplified Chinese. - -NOTE: If you want to change the default language pass the - script: DEFLANG=el ./translate.SlackBuild example for - Greek language :) +This is a simple, yet powerful command line translator with +google translate behind it. You can also use it as a Python +module in your code. diff --git a/network/translate/slack-desc b/network/translate/slack-desc index 21c29f38a9..6b86ec79b5 100644 --- a/network/translate/slack-desc +++ b/network/translate/slack-desc @@ -8,9 +8,9 @@ |-----handy-ruler------------------------------------------------------| translate: translate (command line translator) translate: -translate: Google translate as Python module & command line tool. -translate: No key, no authentication whatsoever. The default target language -translate: is Simplified Chinese. +translate: This is a simple, yet powerful command line translator with +translate: google translate behind it. You can also use it as a Python +translate: module in your code. translate: translate: Homepage: https://github.com/terryyin/google-translate-python translate: diff --git a/network/translate/translate.SlackBuild b/network/translate/translate.SlackBuild index f0d0ede63f..8d25ca4941 100644 --- a/network/translate/translate.SlackBuild +++ b/network/translate/translate.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for translate -# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada +# Copyright 2014 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=translate -VERSION=${VERSION:-1.0.8} +VERSION=${VERSION:-2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,27 +69,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -if [ -z $DEFLANG ]; then - DEFLANG='zh' -else - DEFLANG=${DEFLANG} -fi - -# patch to change default language -sed -i "s/default='zh/default='$DEFLANG/" translate.py - python setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# create a short name with soft link -mkdir -p $PKG/usr/bin -( - cd $PKG/usr/bin - ln -sf /usr/bin/$PRGNAM trs -) - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/network/translate/translate.info b/network/translate/translate.info index 6abfb3d261..ccf165e509 100644 --- a/network/translate/translate.info +++ b/network/translate/translate.info @@ -1,8 +1,8 @@ PRGNAM="translate" -VERSION="1.0.8" +VERSION="2.0.0" HOMEPAGE="https://github.com/terryyin/google-translate-python" -DOWNLOAD="https://pypi.python.org/packages/source/t/translate/translate-1.0.8.tar.gz" -MD5SUM="1a54ef991c10a0905e776cd2bfbf263c" +DOWNLOAD="https://pypi.python.org/packages/source/t/translate/translate-2.0.0.tar.gz" +MD5SUM="587508223d5baa7aaae8161dd3d26b8f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |