#!/bin/bash
# Build script for zlib
# Compression library - no external dependencies

set -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"
