#!/bin/bash
# Build script for zlib# Compression library - no external dependenciesset -e
cd "$SRCDIR"# zlib uses a custom configure script, not autoconf./configure --prefix=$PREFIX --shared
gmake -j${JOBS:-1}gmake install DESTDIR="$PKGDIR"# Remove static library to save space (optional)# rm -f "$PKGDIR$PREFIX/lib/libz.a"