mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
network/telegram: Updated for version 0.7.6 + enhancements
This commit is contained in:
parent
d407e40a38
commit
85f9e83b73
3 changed files with 35 additions and 30 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
case "$ARCH" in
|
||||
x86_64)
|
||||
SRC="${SRCNAM}"
|
||||
LIBDIRSUFFIX="64"
|
||||
;;
|
||||
i486)
|
||||
SRC="${SRCNAM}32"
|
||||
LIBDIRSUFFIX=""
|
||||
;;
|
||||
*)
|
||||
echo "$ARCH is not supported."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# Set LIBDIRSUFFIX and TARBALL.
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBDIRSUFFIX="64"
|
||||
TARBALL="$TARBALL_x86_64"
|
||||
else
|
||||
LIBDIRSUFFIX=""
|
||||
TARBALL="$TARBALL_x86"
|
||||
fi
|
||||
|
||||
set -eu
|
||||
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 \
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue