mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-20 22:19:42 +00:00
28 lines
502 B
Plaintext
28 lines
502 B
Plaintext
![]() |
url=$mirror/gzip-1.4.tar.xz
|
||
|
|
||
|
fetch() {
|
||
|
wget -c $url -O src/gzip-1.4.tar.xz
|
||
|
}
|
||
|
|
||
|
unpack() {
|
||
|
pushd src
|
||
|
[ -d gzip-1.4 ] || tar xJf gzip-1.4.tar.xz
|
||
|
popd
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
pushd src/gzip-1.4
|
||
|
gnulibfix lib
|
||
|
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$root --libdir=$libcroot/lib || return 1
|
||
|
echo "#define __printf__ printf" >> lib/config.h
|
||
|
echo "#define rpl_fprintf fprintf" >> lib/config.h
|
||
|
make -j$nprocs || return 1
|
||
|
popd
|
||
|
}
|
||
|
|
||
|
install() {
|
||
|
pushd src/gzip-1.4
|
||
|
make install || return 1
|
||
|
popd
|
||
|
}
|