# Maintainer: PktSurf <smlinux@pktsurf.in>
app=lzip
version=1.23
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"

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

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

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

  make 
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
482804205b6e92fdf9cb17fb9482df7987227c7b1bef9e42d78787acfabe73995f5b1a66f847d2176423f22dce56f1122c5b1c9670f0b778c0bdad2852369c85  lzip-1.23.tar.gz
"
