APP=pigz
VERSION=2.4
BUILD=1sml
HOMEPAGE='https://www.zlib.net/pigz/'
DESC="multi-threaded gzip alternative to minimise compression time"
REQUIRES="zlib"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  make 
  mkdir -p $PKG/bin $PKG/share/man/man1
  cp pigz unpigz $PKG/bin/
  cp pigz.1 $PKG/share/man/man1/

  cp README $PKGDOCS/
  cp zopfli/COPYING $PKGDOCS/COPYING.zopfli 
  cp zopfli/README $PKGDOCS/README.zopfli

  mkfinalpkg
}

SHA512SUMS="
c9e3b42ba332959ee212085d1544923e4e46a0ea7cc0064e115f2a78ce8f4555d209926ba64404ca1255ab7b1be073a5446d53b54574ecb85a57b58ff994979b  pigz-2.4.tar.lz
"
