Mercurial > vanilla
diff editors/vim/vim.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/editors/vim/vim.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/editors/vim/vim.sh Wed Oct 27 11:32:16 2021 +0200 @@ -117,32 +117,35 @@ with_terminal="--disable-terminal" fi -rm -rf $PKGNAME-$PKGVERSION -tar xvf v$PKGVERSION.tar.gz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf v$PKGVERSION.tar.gz + cd $PKGNAME-$PKGVERSION -CC="$CC" \ -CFLAGS="$CFLAGS" \ -LDFLAGS="$LDFLAGS" \ -LIBS="$LIBS" \ -./configure \ - --prefix=/usr \ - --disable-selinux \ - --disable-luainterp \ - --disable-pythoninterp \ - $with_acl \ - $with_gpm \ - $with_gui \ - $with_libcanberra \ - $with_multibyte \ - $with_nls \ - $with_perl \ - $with_python \ - $with_ruby \ - $with_tcl \ - $with_terminal -make -make install DESTDIR=$DESTDIR + CC="$CC" \ + CFLAGS="$CFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --prefix= \ + --disable-selinux \ + --disable-luainterp \ + --disable-pythoninterp \ + $with_acl \ + $with_gpm \ + $with_gui \ + $with_libcanberra \ + $with_multibyte \ + $with_nls \ + $with_perl \ + $with_python \ + $with_ruby \ + $with_tcl \ + $with_terminal + make + make install DESTDIR=$DESTDIR -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}