url=$mirror/tmux-1.8.tar.gz fetch() { wget -c $url -O src/tmux-1.8.tar.gz } unpack() { pushd src [ -d tmux-1.8 ] || tar xzf tmux-1.8.tar.gz popd } build() { pushd src/tmux-1.8 CC=musl-gcc ./configure --prefix=$root \ CFLAGS="-I$top/cross/include -I$top/cross/include/ncurses" \ LDFLAGS="-static -L$top/cross/lib" make CC=musl-gcc -j$nprocs popd } install() { pushd src/tmux-1.8 make install popd }