diff options
Diffstat (limited to 'network/translate')
-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="" |