diff options
author | Eric Hameleers <alien@slackware.com> | 2015-05-27 12:09:26 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-05-27 12:09:26 +0000 |
commit | 6fde6e28950810d0cacbda70a56b02ab1b30a852 (patch) | |
tree | 9df543e3ad123c0b29af80c892dcef77bd003f80 /telegram-cli | |
parent | 70251abdda7fb43c87beff7695f503745c31ec76 (diff) | |
download | asb-6fde6e28950810d0cacbda70a56b02ab1b30a852.tar.gz asb-6fde6e28950810d0cacbda70a56b02ab1b30a852.tar.xz |
telegram-cli: updated to 20150527 snapshot
Diffstat (limited to 'telegram-cli')
-rwxr-xr-x | telegram-cli/build/telegram-cli.SlackBuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/telegram-cli/build/telegram-cli.SlackBuild b/telegram-cli/build/telegram-cli.SlackBuild index 14c015b4..006777a0 100755 --- a/telegram-cli/build/telegram-cli.SlackBuild +++ b/telegram-cli/build/telegram-cli.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright 2014 Eric Hameleers, Eindhoven, NL +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -31,8 +31,12 @@ # Build needs: # Needs: libconfig, lua # Changelog: -# 20140305-1: 05/Mar/2014 by Eric Hameleers <alien@slackware.com> +# 20140305-1: 05/mar/2014 by Eric Hameleers <alien@slackware.com> # * Initial build. +# 20150527-1: 27/may/2014 by Eric Hameleers <alien@slackware.com> +# * Update. Note the mandatory use of "git clone --recursive" +# or else the software won't compile. +# See https://github.com/vysheng/tg/issues/379 # # Run 'sh telegram-cli.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -86,7 +90,7 @@ src_checkout() { mkdir -p $CODIR/${PRGNAM}_temp_checkout_$$ \ && cd $CODIR/${PRGNAM}_temp_checkout_$$ mkdir ${PBASE} \ - && git clone ${GITURI} ${PBASE} \ + && git clone --recursive ${GITURI} ${PBASE} \ && cd ${PBASE} \ && git checkout master \ && git checkout $(git rev-list -n 1 --before="`date -d $VERSION`" master) \ @@ -205,7 +209,7 @@ chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . echo Building ... -LDFLAGS="$SLKLDFLAGS" \ +LDFLAGS="$SLKLDFLAGS -lncurses" \ CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ ./configure \ @@ -226,11 +230,11 @@ sed -i -e 's/ledit/lreadline/g' Makefile make $NUMJOBS 2>&1 | tee $OUTPUT/make-${PRGNAM}.log -# Install the renamed binary: -install -D -m0755 telegram $PKG/usr/bin/${PRGNAM} +# Install the binary: +install -D -m0755 bin/telegram-cli $PKG/usr/bin/${PRGNAM} # Add public key for the server where the client will look for it: -install -D -m0644 tg.pub $PKG/etc/${PRGNAM}/server.pub +install -D -m0644 tg-server.pub $PKG/etc/${PRGNAM}/server.pub # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |