-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sh
38 lines (31 loc) · 772 Bytes
/
build.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
set -x
VERSION=2.6
# based on: https://gist.github.com/pistol/5069697
# ncurses
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz
tar xvzf ncurses-6.1.tar.gz
cd ncurses-6.1
./configure --prefix=$HOME/local
make -j8
make install
cd ..
# libevent
git clone git://github.com/libevent/libevent.git
cd libevent
git checkout release-2.1.8-stable
./autogen.sh
./configure --prefix=$HOME/local
make -j8
make install
cd ..
# tmux
git clone https://github.com/tmux/tmux.git tmux-src
cd tmux-src
git checkout $VERSION
./autogen.sh
./configure --prefix=$HOME/local CPPFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-static -L$HOME/local/include -L$HOME/local/include/ncurses -L$HOME/local/lib"
make -j8
make install
cp tmux ..