Mercurial > vanilla
comparison compression/zlib/zlib.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 | 4c7d308e0000 |
comparison
equal
deleted
inserted
replaced
1221:a47aaf9743a0 | 1222:325631424c65 |
---|---|
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 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 CC="$CC" CFLAGS="$CFLAGS" ./configure --prefix=/usr | 35 CC="$CC" CFLAGS="$CFLAGS" ./configure --prefix= |
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 } |