summaryrefslogtreecommitdiffstats
path: root/network/megatools
diff options
context:
space:
mode:
Diffstat (limited to 'network/megatools')
-rw-r--r--network/megatools/README16
-rw-r--r--network/megatools/megatools.SlackBuild20
-rw-r--r--network/megatools/megatools.info6
3 files changed, 27 insertions, 15 deletions
diff --git a/network/megatools/README b/network/megatools/README
index c7107d916f..2d625d0ade 100644
--- a/network/megatools/README
+++ b/network/megatools/README
@@ -1,9 +1,11 @@
-Megatools is a collection of programs for accessing Mega service from a command
-line of your desktop or server.
+Megatools is a collection of programs for accessing Mega service from
+a command line of your desktop or server.
-Megatools allow you to copy individual files as well as entire directory trees
-to and from the cloud. You can also perform streaming downloads for example to
-preview videos and audio files, without needing to download the entire file.
+Megatools allow you to copy individual files as well as entire
+directory trees to and from the cloud. You can also perform streaming
+downloads for example to preview videos and audio files, without
+needing to download the entire file.
-Megatools are robust and optimized for fast operation - as fast as Mega servers
-allow. Memory requirements and CPU utilization are kept at minimum.
+Megatools are robust and optimized for fast operation - as fast as
+Mega servers allow. Memory requirements and CPU utilization are kept
+at minimum.
diff --git a/network/megatools/megatools.SlackBuild b/network/megatools/megatools.SlackBuild
index a8ecc2bac3..445f614e84 100644
--- a/network/megatools/megatools.SlackBuild
+++ b/network/megatools/megatools.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for megatools
-# Copyright 2014-2018 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Copyright 2014-2020 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=megatools
-VERSION=${VERSION:-1.10.2}
+VERSION=${VERSION:-1.10.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -100,4 +110,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/megatools/megatools.info b/network/megatools/megatools.info
index 9482d6a966..29028d7511 100644
--- a/network/megatools/megatools.info
+++ b/network/megatools/megatools.info
@@ -1,8 +1,8 @@
PRGNAM="megatools"
-VERSION="1.10.2"
+VERSION="1.10.3"
HOMEPAGE="https://megatools.megous.com/"
-DOWNLOAD="https://megatools.megous.com/builds/megatools-1.10.2.tar.gz"
-MD5SUM="b9c7e18b4daf48867d7c669a674744b0"
+DOWNLOAD="https://megatools.megous.com/builds/megatools-1.10.3.tar.gz"
+MD5SUM="e5f85f5f5d4fe844a6090a2816eabcae"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""