Mercurial > vanilla
comparison compression/lzip/lzip.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 |
comparison
equal
deleted
inserted
replaced
1221:a47aaf9743a0 | 1222:325631424c65 |
---|---|
23 PKGDOWNLOAD="https://download.savannah.gnu.org/releases/$PKGNAME/$PKGNAME-$PKGVERSION.tar.gz" | 23 PKGDOWNLOAD="https://download.savannah.gnu.org/releases/$PKGNAME/$PKGNAME-$PKGVERSION.tar.gz" |
24 | 24 |
25 : ${CXX:=clang++} | 25 : ${CXX:=clang++} |
26 : ${CXXFLAGS:=-O2} | 26 : ${CXXFLAGS:=-O2} |
27 | 27 |
28 rm -rf $PKGNAME-$PKGVERSION | 28 build() |
29 tar xvf $PKGNAME-$PKGVERSION.tar.gz | 29 { |
30 cd $PKGNAME-$PKGVERSION | 30 rm -rf $PKGNAME-$PKGVERSION |
31 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
32 cd $PKGNAME-$PKGVERSION | |
31 | 33 |
32 # custom configure script. | 34 # custom configure script. |
33 ./configure --prefix=/usr CXX="$CXX" CXXFLAGS="$CXXFLAGS" | 35 ./configure --prefix= CXX="$CXX" CXXFLAGS="$CXXFLAGS" |
34 make | 36 make |
35 make install DESTDIR=$DESTDIR | 37 make install DESTDIR=$DESTDIR |
36 | 38 |
37 cd .. | 39 cd .. |
38 rm -rf $PKGNAME-$PKGVERSION | 40 rm -rf $PKGNAME-$PKGVERSION |
41 } |