diff options
Diffstat (limited to 'network/translate/translate.SlackBuild')
-rw-r--r-- | network/translate/translate.SlackBuild | 20 |
1 files changed, 2 insertions, 18 deletions
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 |