1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-07-01 00:51:22 +00:00
morpheus/pkgs/zlib
sin 4b1709f90a List dependencies explicitly
This is by far the simplest approach as packages previously
in cross-scripts/ could also depend on other packages.
2014-02-17 16:31:31 +00:00

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 -
}