app=gzip
version=1.10
build=1sml
homepage="https://www.gnu.org/software/gzip/"
download="https://ftp.gnu.org/gnu/gzip/gzip-$version.tar.gz"
desc="GNU file compression utility"
requires="less"

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

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

  #$srcdir/gnulibfix lib
  #CPPFLAGS="-Drpl_fdopendir=fdopendir -DS_IRWXUGO=077 -DO_BINARY=0" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make V=1
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
7939043e74554ced0c1c05d354ab4eb36cd6dce89ad79d02ccdc5ed6b7ee390759689b2d47c07227b9b44a62851afe7c76c4cae9f92527d999f3f1b4df1cccff  gzip-1.10.tar.gz
"
