app=lzip
version=1.20
build=1sml
homepage="https://www.nongnu.org/lzip/lzip.html"
download="http://download.savannah.gnu.org/releases/lzip/lzip-$version.tar.gz"
desc="drop-in replacement for gzip and bzip with emphasis on data recovery"
requires="musl"

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

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

  ./configure \
    --prefix="" 

  make CXXFLAGS="$CXXFLAGS -static"
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
0349b4c6c0b41e601b7ee381c3254d741397beb3ef9354c08162f346f131f4f48f6613ee0a610cdc6d827530df634f884ecfeee35215b10045a40fee76f8e938  lzip-1.20.tar.gz
"
