APP=lzip
VERSION=1.20
BUILD=1sml
HOMEPAGE='https://www.nongnu.org/lzip/lzip.html'
DOWNLOAD='http://download.savannah.gnu.org/releases/lzip/lzip-1.20.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
"
