summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2015-02-03 07:01:34 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-07 15:21:05 +0700
commit85f9e83b73b39da6979138a782f558e76a6278f3 (patch)
treec6f757430f1e1d865938df2686ff0e16d155a05c /network
parentd407e40a38eeda7be2ebe23df5e7d177239e28e6 (diff)
downloadslackbuilds-85f9e83b73b39da6979138a782f558e76a6278f3.tar.gz
network/telegram: Updated for version 0.7.6 + enhancements
Diffstat (limited to 'network')
-rw-r--r--network/telegram/README3
-rw-r--r--network/telegram/telegram.SlackBuild54
-rw-r--r--network/telegram/telegram.info10
3 files changed, 36 insertions, 31 deletions
diff --git a/network/telegram/README b/network/telegram/README
index c172ad7279..02b7582df6 100644
--- a/network/telegram/README
+++ b/network/telegram/README
@@ -1,3 +1,4 @@
Telegram
-Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.
+Telegram is a cloud-based mobile and desktop messaging app with a focus on
+security and speed.
diff --git a/network/telegram/telegram.SlackBuild b/network/telegram/telegram.SlackBuild
index 020dc87f17..daf48613b2 100644
--- a/network/telegram/telegram.SlackBuild
+++ b/network/telegram/telegram.SlackBuild
@@ -22,45 +22,49 @@
# with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>.
+# Modified by Mario Preksavec <mario@slackware.hr>
+
PRGNAM=telegram
-VERSION=${VERSION:-0.6.15}
+SRCNAM=tsetup
+SRCDIR=Telegram
+VERSION=${VERSION:-0.7.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+esac
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-TARBALL_x86="tsetup32.0.6.15.tar.xz" # Name of 32bit tarball
-TARBALL_x86_64="tsetup.0.6.15.tar.xz" # Name of 64bit tarball
-TARBALL_ROOT="Telegram" # Name of tarballs root directory
-
-# Set LIBDIRSUFFIX and TARBALL.
-if [ "$ARCH" = "x86_64" ]; then
- LIBDIRSUFFIX="64"
- TARBALL="$TARBALL_x86_64"
-else
- LIBDIRSUFFIX=""
- TARBALL="$TARBALL_x86"
-fi
-
-set -eu
+case "$ARCH" in
+ x86_64)
+ SRC="${SRCNAM}"
+ LIBDIRSUFFIX="64"
+ ;;
+ i486)
+ SRC="${SRCNAM}32"
+ LIBDIRSUFFIX=""
+ ;;
+ *)
+ echo "$ARCH is not supported."
+ exit 1
+ ;;
+esac
+
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf "$TARBALL_ROOT"
-tar xvf $CWD/$TARBALL
-cd "$TARBALL_ROOT"
+rm -rf $SRCDIR
+tar xvf $CWD/$SRC.$VERSION.tar.xz
+cd $SRCDIR
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
diff --git a/network/telegram/telegram.info b/network/telegram/telegram.info
index a75b2f4cd2..f33079bf86 100644
--- a/network/telegram/telegram.info
+++ b/network/telegram/telegram.info
@@ -1,10 +1,10 @@
PRGNAM="telegram"
-VERSION="0.6.15"
+VERSION="0.7.10"
HOMEPAGE="http://telegram.org"
-DOWNLOAD="https://updates.tdesktop.com/tlinux32/tsetup32.0.6.15.tar.xz"
-MD5SUM="6d18c6db7fb57a15af7770f11644dc80"
-DOWNLOAD_x86_64="https://updates.tdesktop.com/tlinux/tsetup.0.6.15.tar.xz"
-MD5SUM_x86_64="2bafe8487a5e91860ed0a3aaa52650bb"
+DOWNLOAD="https://updates.tdesktop.com/tlinux32/tsetup32.0.7.10.tar.xz"
+MD5SUM="aef0d8dc5c6313ba14617bffb106318e"
+DOWNLOAD_x86_64="https://updates.tdesktop.com/tlinux/tsetup.0.7.10.tar.xz"
+MD5SUM_x86_64="7b4e974978b5814c28f656d631c1b1c6"
REQUIRES=""
MAINTAINER="Marco Ferraioli"
EMAIL="marcoferraioli@live.com"