# Maintainer: PktSurf <smlinux@pktsurf.in>
app=zlib
version=1.2.13
build=1sml
homepage="https://www.zlib.net"
download="https://www.zlib.net/zlib-$version.tar.gz"
requires="musl"
desc="General purpose thread safe data compression library"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
06b5cb2f477b5999d6f5016b545a8d534ff10c744cfdc2056c9ee873e0c9e9cf49a7218161f28929a8509cb290a1dc30240a04ef95380a16d92922d5e01edb49  zlib-1.2.13.tar.lz
"
