app=zlib
version=1.2.11
build=1sml
homepage="https://www.zlib.net"
download="https://www.zlib.net/zlib-$version.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
"
