Mercurial > vanilla
comparison compression/zlib/zlib.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | ddab65a5b3f5 |
children | 27d1a83dc8d6 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
23 PKGDOWNLOAD="http://www.zlib.net/$PKGNAME-$PKGVERSION.tar.gz" | 23 PKGDOWNLOAD="http://www.zlib.net/$PKGNAME-$PKGVERSION.tar.gz" |
24 | 24 |
25 : ${CC:=clang} | 25 : ${CC:=clang} |
26 : ${CFLAGS:=-O2} | 26 : ${CFLAGS:=-O2} |
27 | 27 |
28 build() | 28 rm -rf $PKGNAME-$PKGVERSION |
29 { | 29 tar xvf $PKGNAME-$PKGVERSION.tar.gz |
30 rm -rf $PKGNAME-$PKGVERSION | 30 cd $PKGNAME-$PKGVERSION |
31 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
32 cd $PKGNAME-$PKGVERSION | |
33 | 31 |
34 # custom configure script. | 32 # custom configure script. |
35 CC="$CC" CFLAGS="$CFLAGS" ./configure --prefix= | 33 CC="$CC" CFLAGS="$CFLAGS" ./configure --prefix= |
36 make | 34 make |
37 make install DESTDIR=$DESTDIR | 35 make install DESTDIR=$DESTDIR |
38 | 36 |
39 cd .. | 37 cd .. |
40 rm -rf $PKGNAME-$PKGVERSION | 38 rm -rf $PKGNAME-$PKGVERSION |
41 } |