Skip to content

Commit 5e86a35

Browse files
committed
fix for compiling on travis
1 parent df34d91 commit 5e86a35

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ addons:
2020
- aria2
2121
- tree
2222
- python-requests
23+
- libreadline-dev
24+
- libconfig-dev
25+
- lua5.2
26+
- liblua5.2-dev
27+
- libevent-dev
28+
- libpython-dev
29+
- libjansson-dev
30+
- libssl1.0-dev
31+
- libgcrypt20-dev
2332

2433
script: mkdir images && sudo PATH=./node_modules/.bin:$PATH ./builder --noninteractive
2534

scripts.d/16_pkg_install.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ INSTALL_PACKAGES=(
1919
rng-tools # for ap bridge
2020
tor=0.3.5.10-1 #TODO bring back to upstream
2121
openvpn
22-
libreadline-dev libconfig-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev libssl-dev libgcrypt20-dev # telegram-cli
2322
shadowsocks-libev proxychains4 # socks5 proxy
2423
libpam-google-authenticator # two factor authentication
2524
jq # for parsing json / treehouses command

scripts.d/20_telegram_cli.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#! /bin/bash
22

33
git clone https://github.com/vysheng/tg --recursive
4-
cd tg
5-
sed -i '116d' ./tgl/mtproto-utils.c
6-
sed -i '105d' ./tgl/mtproto-utils.c
4+
5+
cd tg || exit 1
6+
sed -i '107d' ./tgl/mtproto-utils.c
7+
sed -i '101d' ./tgl/mtproto-utils.c
8+
sed -i "s/\-rdynamic //" Makefile.in
9+
sed -i "s/\-fPIC//" Makefile.in
10+
sed -i "s/\-Werror //" Makefile.in
711
./configure
8-
make
12+
CXX=arm-linux-gnueabihf-g++ make
913
cp ./bin/telegram-cli /mnt/img_root/usr/local/bin/telegram-cli
1014
mkdir -p /mnt/img_root/etc/telegram-cli
1115
cp ./server.pub /mnt/img_root/etc/telegram-cli/server.pub
1216
cd ../
13-
rm -rf tg
17+
rm -rf tg

0 commit comments

Comments
 (0)