mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
network/translate: Updated for version 2.0.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
e9fa7305da
commit
95dea3c972
4 changed files with 11 additions and 31 deletions
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue