app=lzlib
version=1.11
build=1sml
homepage="http://www.nongnu.org/lzip/lzlib.html"
download="http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-$version.tar.lz"
desc="lzip compression and decompression library"
requires="musl"

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

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

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg 

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
2628bb5bfceb8124020cae57f4aecba2f83cbfb5be32acb4f66742e2460e7545be72696f81646fd3e0b7a509faa9d183b7237b7569c2f023ed0488b24a209ae7  lzlib-1.11.tar.lz
"
