summaryrefslogtreecommitdiff
path: root/network/telegram-cli/telegram-cli.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/telegram-cli/telegram-cli.SlackBuild')
-rw-r--r--network/telegram-cli/telegram-cli.SlackBuild37
1 files changed, 12 insertions, 25 deletions
diff --git a/network/telegram-cli/telegram-cli.SlackBuild b/network/telegram-cli/telegram-cli.SlackBuild
index 777c3d5c73..2588d23fda 100644
--- a/network/telegram-cli/telegram-cli.SlackBuild
+++ b/network/telegram-cli/telegram-cli.SlackBuild
@@ -25,17 +25,15 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=telegram-cli
-VERSION=${VERSION:-1.4.1}
+SRCNAM=tg
+VERSION=${VERSION:-20200106}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-SRCNAM=tg
-SRCVERSION=6547c0b21b977b327b3c5e8142963f4bc246187a
-
-# Git modules
-MODULENAM=(tgl tl-parser)
-MODULEVERSION=(ffb04caca71de0cddf28cd33a4575922900a59ed 36bf1902ff3476c75d0b1f42b34a91e944123b3c)
+# Git module
+SRCNAM2=tgl
+VERSION2=57f1bc41ae13297e6c3e23ac465fd45ec6659f50
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -45,9 +43,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
@@ -76,20 +71,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$SRCVERSION
-tar xvf $CWD/$SRCNAM-$SRCVERSION.tar.gz || tar xvf $CWD/$SRCVERSION.tar.gz
-cd $SRCNAM-$SRCVERSION
-
-rm -rf ${MODULENAM[0]}
-tar xvf $CWD/${MODULENAM[0]}-${MODULEVERSION[0]}.tar.gz || tar xvf $CWD/${MODULEVERSION[0]}.tar.gz
-mv ${MODULENAM[0]}-${MODULEVERSION[0]} ${MODULENAM[0]}
-
-( cd ${MODULENAM[0]}
- rm -rf ${MODULENAM[1]}
- tar xvf $CWD/${MODULENAM[1]}-${MODULEVERSION[1]}.tar.gz || tar xvf $CWD/${MODULEVERSION[1]}.tar.gz
- mv ${MODULENAM[1]}-${MODULEVERSION[1]} ${MODULENAM[1]}
-)
-
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+rm -rf $SRCNAM2
+tar xvf $CWD/$SRCNAM2-$VERSION2.tar.gz
+mv $SRCNAM2-$VERSION2 tgl
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -99,7 +86,7 @@ find -L . \
patch -p1 < $CWD/libreadline.patch
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS -fcommon" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \