Browse Source
network/telegram-cli: Removed (abandoned).
network/telegram-cli: Removed (abandoned).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>pull/191/head
5 changed files with 0 additions and 174 deletions
-
1network/telegram-cli/README
-
17network/telegram-cli/libreadline.patch
-
19network/telegram-cli/slack-desc
-
125network/telegram-cli/telegram-cli.SlackBuild
-
12network/telegram-cli/telegram-cli.info
@ -1 +0,0 @@ |
|||
Command-line interface for Telegram. |
@ -1,17 +0,0 @@ |
|||
diff --git a/configure b/configure
|
|||
index fa7e189..9beaf07 100755
|
|||
--- a/configure
|
|||
+++ b/configure
|
|||
@@ -4622,11 +4622,7 @@ LIBS=$ac_check_lib_save_LIBS
|
|||
fi |
|||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_save_prompt" >&5 |
|||
$as_echo "$ac_cv_lib_readline_rl_save_prompt" >&6; } |
|||
-if test "x$ac_cv_lib_readline_rl_save_prompt" = xyes; then :
|
|||
- EXTRA_LIBS="${EXTRA_LIBS} -lreadline" ;
|
|||
-else
|
|||
- as_fn_error $? "no libreadline found" "$LINENO" 5
|
|||
-fi
|
|||
+EXTRA_LIBS="${EXTRA_LIBS} -lreadline" ;
|
|||
|
|||
|
|||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libconfig" >&5 |
@ -1,19 +0,0 @@ |
|||
# HOW TO EDIT THIS FILE: |
|||
# The "handy ruler" below makes it easier to edit a package description. |
|||
# Line up the first '|' above the ':' following the base package name, and |
|||
# the '|' on the right side marks the last column you can put a character in. |
|||
# You must make exactly 11 lines for the formatting to be correct. It's also |
|||
# customary to leave one space after the ':' except on otherwise blank lines. |
|||
|
|||
|-----handy-ruler------------------------------------------------------| |
|||
telegram-cli: telegram-cli (command-line interface for Telegram.) |
|||
telegram-cli: |
|||
telegram-cli: Command-line interface for Telegram. |
|||
telegram-cli: |
|||
telegram-cli: |
|||
telegram-cli: |
|||
telegram-cli: |
|||
telegram-cli: |
|||
telegram-cli: |
|||
telegram-cli: |
|||
telegram-cli: |
@ -1,125 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
# Slackware build script for telegram-cli |
|||
|
|||
# Copyright 2017 Azure Zanculmarktum <zanculmarktum@gmail.com> |
|||
# All rights reserved. |
|||
# |
|||
# Redistribution and use of this script, with or without modification, is |
|||
# permitted provided that the following conditions are met: |
|||
# |
|||
# 1. Redistributions of this script must retain the above copyright |
|||
# notice, this list of conditions and the following disclaimer. |
|||
# |
|||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED |
|||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
|||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
|||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
|||
# 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. |
|||
|
|||
cd $(dirname $0) ; CWD=$(pwd) |
|||
|
|||
PRGNAM=telegram-cli |
|||
SRCNAM=tg |
|||
VERSION=${VERSION:-20200106} |
|||
BUILD=${BUILD:-1} |
|||
TAG=${TAG:-_SBo} |
|||
PKGTYPE=${PKGTYPE:-tgz} |
|||
|
|||
# Git module |
|||
SRCNAM2=tgl |
|||
VERSION2=57f1bc41ae13297e6c3e23ac465fd45ec6659f50 |
|||
|
|||
if [ -z "$ARCH" ]; then |
|||
case "$( uname -m )" in |
|||
i?86) ARCH=i586 ;; |
|||
arm*) ARCH=arm ;; |
|||
*) ARCH=$( uname -m ) ;; |
|||
esac |
|||
fi |
|||
|
|||
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} |
|||
|
|||
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 |
|||
|
|||
set -e |
|||
|
|||
rm -rf $PKG |
|||
mkdir -p $TMP $PKG $OUTPUT |
|||
cd $TMP |
|||
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 \ |
|||
-o -perm 511 \) -exec chmod 755 {} \; -o \ |
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ |
|||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; |
|||
|
|||
patch -p1 < $CWD/libreadline.patch |
|||
|
|||
CFLAGS="$SLKCFLAGS -fcommon" \ |
|||
CXXFLAGS="$SLKCFLAGS" \ |
|||
./configure \ |
|||
--prefix=/usr \ |
|||
--libdir=/usr/lib${LIBDIRSUFFIX} \ |
|||
--sysconfdir=/etc \ |
|||
--localstatedir=/var \ |
|||
--mandir=/usr/man \ |
|||
--docdir=/usr/doc/$PRGNAM-$VERSION \ |
|||
--build=$ARCH-slackware-linux |
|||
|
|||
make |
|||
|
|||
install -Dm755 bin/telegram-cli $PKG/usr/bin/telegram-cli |
|||
install -Dm644 tg-server.pub $PKG/etc/telegram-cli/server.pub |
|||
chmod 644 README-Cygwin.md |
|||
|
|||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |
|||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |
|||
|
|||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |
|||
cp -a \ |
|||
CHANGELOG \ |
|||
LICENSE \ |
|||
README-Cygwin.md \ |
|||
README-LUA \ |
|||
README-PY.md \ |
|||
README.es \ |
|||
README.md \ |
|||
$PKG/usr/doc/$PRGNAM-$VERSION |
|||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |
|||
|
|||
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 |
@ -1,12 +0,0 @@ |
|||
PRGNAM="telegram-cli" |
|||
VERSION="20200106" |
|||
HOMEPAGE="https://github.com/kenorb-contrib/tg" |
|||
DOWNLOAD="https://github.com/kenorb-contrib/tg/archive/20200106/tg-20200106.tar.gz \ |
|||
https://github.com/kenorb-contrib/tgl/archive/57f1bc41ae13297e6c3e23ac465fd45ec6659f50/tgl-57f1bc41ae13297e6c3e23ac465fd45ec6659f50.tar.gz" |
|||
MD5SUM="0deb315d28e6adfe357b703a0c2bb066 \ |
|||
04ce98ac8e0504af5c2a27db567fbe82" |
|||
DOWNLOAD_x86_64="" |
|||
MD5SUM_x86_64="" |
|||
REQUIRES="libconfig lua" |
|||
MAINTAINER="Azure Zanculmarktum" |
|||
EMAIL="zanculmarktum@gmail.com" |
Write
Preview
Loading…
Cancel
Save
Reference in new issue