mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-27 09:48:33 +00:00
![sin](/assets/img/avatar_default.png)
Also rename pkgs/arch-rootfs to pkgs/emul. The create-bootable script still needs to be fixed to work with dash.
25 lines
368 B
Plaintext
25 lines
368 B
Plaintext
url=$mirror/zlib-1.2.8.tar.gz
|
|
|
|
fetch() {
|
|
wget -c $url -O src/zlib-1.2.8.tar.gz
|
|
}
|
|
|
|
unpack() {
|
|
cd src
|
|
[ -d zlib-1.2.8 ] || tar xzf zlib-1.2.8.tar.gz
|
|
cd -
|
|
}
|
|
|
|
build() {
|
|
cd src/zlib-1.2.8
|
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --static || return 1
|
|
make -j$nprocs || return 1
|
|
cd -
|
|
}
|
|
|
|
install() {
|
|
cd src/zlib-1.2.8
|
|
make install || return 1
|
|
cd -
|
|
}
|