2014-02-26 09:53:28 +00:00
|
|
|
url=http://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
|
2014-02-26 09:01:52 +00:00
|
|
|
|
|
|
|
fetch() {
|
|
|
|
wget -c $url -O src/vim-7.4.tar.bz2
|
|
|
|
}
|
|
|
|
|
|
|
|
unpack() {
|
|
|
|
cd src
|
|
|
|
[ -d vim-7.4 ] || tar xjf vim-7.4.tar.bz2
|
|
|
|
cd -
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd src/vim74
|
2014-02-26 10:17:27 +00:00
|
|
|
CC=x86_64-linux-musl-gcc CFLAGS="-I$libcroot/include" LDFLAGS="-L$libcroot/lib -static" ./configure --prefix=/ \
|
|
|
|
--enable-multibyte --disable-gui --with-x=no \
|
|
|
|
--disable-nls || return 1
|
2014-02-26 09:01:52 +00:00
|
|
|
make -j$nprocs || return 1
|
|
|
|
cd -
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
|
|
|
cd src/vim74
|
|
|
|
make DESTDIR="$root" install || return 1
|
|
|
|
cd -
|
|
|
|
}
|