aboutsummaryrefslogtreecommitdiff
path: root/build/tmux/build-int.sh
blob: b4687aa76681d60c9630c923986044e35f701e06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -e
set -x
ver=3.1a
export LDFLAGS='-static'

cd /build

if [ -e tmux ] ; then exit 0 ; fi

if ! [ -e git ] ; then
		git clone --depth 1 --branch "$ver" https://github.com/tmux/tmux git
fi

cd git

./autogen.sh
./configure --enable-static
make -j$(nproc)
cp tmux ../

cd ..

gzip -c < tmux > tmux.gz
base64 < tmux.gz > tmux.base64.gz