aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG. Galdini <jake@dioniso.com.br>2024-07-27 08:50:26 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-28 07:03:04 +0700
commitd340a432875bfe2bcbee11a10f912617c8273e40 (patch)
treeb7ce43a20b365ffd782727069c761e82838768f2
parent44bc2cdc6f960df1330e6e0714e82ffbdce1c342 (diff)
network/translate-shell: Updated for version 0.9.7.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/translate-shell/README19
-rw-r--r--network/translate-shell/slack-desc2
-rw-r--r--network/translate-shell/translate-shell.SlackBuild30
-rw-r--r--network/translate-shell/translate-shell.info10
4 files changed, 26 insertions, 35 deletions
diff --git a/network/translate-shell/README b/network/translate-shell/README
index 9b0307ae359b..ae19ee22dcb6 100644
--- a/network/translate-shell/README
+++ b/network/translate-shell/README
@@ -3,13 +3,18 @@ translator powered by Google Translate (default), Bing Translator,
Yandex.Translate, and Apertium.
If you prefer zsh over bash:
- $ TARGET=zsh ./translate-shell.SlackBuild
-Recommended Dependencies:
- * mpv or espeak
- for the Text-to-Speech functionality
- * rlwrap
- for readline-style editing and history in the interactive shell
+ TARGET=zsh ./translate-shell.SlackBuild
-Recommended Fonts:
+Recommended dependencies:
+ * curl with OpenSSL support.
+ * GNU FriBidi: for displaying text in Right-to-Left scripts
+ (e.g. Arabic, Hebrew).
+ * mplayer, mpv, mpg123 or eSpeak: for the Text-to-Speech functionality.
+ * less, more or most: for terminal paging.
+ * rlwrap: for readline-style editing and history in the interactive
+ shell.
+ * aspell or hunspell: for spell checking.
+
+Recommended fonts:
https://github.com/soimort/translate-shell/wiki/Writing-Systems-and-Fonts#unicode-fonts
diff --git a/network/translate-shell/slack-desc b/network/translate-shell/slack-desc
index 955c32dacb37..560e8bb96038 100644
--- a/network/translate-shell/slack-desc
+++ b/network/translate-shell/slack-desc
@@ -12,7 +12,7 @@ translate-shell: Translate Shell (formerly Google Translate CLI) is a command-li
translate-shell: translator powered by Google Translate (default), Bing Translator,
translate-shell: Yandex.Translate, and Apertium.
translate-shell:
-translate-shell:
+translate-shell: Homepage: https://www.soimort.org/translate-shell
translate-shell:
translate-shell:
translate-shell:
diff --git a/network/translate-shell/translate-shell.SlackBuild b/network/translate-shell/translate-shell.SlackBuild
index 47817dea45fb..ffc5605b80f8 100644
--- a/network/translate-shell/translate-shell.SlackBuild
+++ b/network/translate-shell/translate-shell.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for translate-shell
-# Copyright 2018, 2019, 2020 Azure Zanculmarktum <zanculmarktum@gmail.com>
+# Copyright 2018-2024 Azure Zanculmarktum <zanculmarktum@gmail.com>
+# Copyright 2024 G. Galdini <jake@dioniso.com.br> Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,11 +22,13 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# 20240726 - new maintainer (G. Galdini)
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=translate-shell
-VERSION=${VERSION:-0.9.6.11}
+VERSION=${VERSION:-0.9.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -50,20 +50,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
: ${TARGET:=bash}
set -e
@@ -91,11 +77,11 @@ sed -i \
make
make install DESTDIR=$PKG
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -p CONTRIBUTING.md LICENSE README.md README.template.md WAIVER $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CONTRIBUTING.md LICENSE README.md README.template.md WAIVER \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/translate-shell/translate-shell.info b/network/translate-shell/translate-shell.info
index fdd3759d717d..c8125f712c31 100644
--- a/network/translate-shell/translate-shell.info
+++ b/network/translate-shell/translate-shell.info
@@ -1,10 +1,10 @@
PRGNAM="translate-shell"
-VERSION="0.9.6.11"
+VERSION="0.9.7.1"
HOMEPAGE="https://www.soimort.org/translate-shell/"
-DOWNLOAD="https://github.com/soimort/translate-shell/archive/v0.9.6.11/translate-shell-0.9.6.11.tar.gz"
-MD5SUM="f40e7b0ee66e30ec15481336df58ecba"
+DOWNLOAD="https://github.com/soimort/translate-shell/archive/v0.9.7.1/translate-shell-0.9.7.1.tar.gz"
+MD5SUM="7ddfb3bc89e1712d76839f76f98d9efd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Azure Zanculmarktum"
-EMAIL="zanculmarktum@gmail.com"
+MAINTAINER="G. Galdini"
+EMAIL="jake@dioniso.com.br"