APP=zlib
VERSION=1.2.11
BUILD=1sml
HOMEPAGE="https://www.zlib.net"
DOWNLOAD="https://www.zlib.net/zlib-1.2.11.tar.xz"
REQUIRES="musl"
DESC="General purpose thread safe data compression library"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$PKG

  cp README $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
93968f26901a68c605d850d67cdee4ffada08b8e7b9fbe8ee062da6d9bc036c8c2d21194b437b00956d9473dff17ff0a8fafb5b19fcdbc460d372c37de9dc45b  zlib-1.2.11.tar.lz
"
