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

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
9c3f061844413ee2d382608dd9019813f78edc72bd75ab53f58c757d60859f9139b3850ccf1ed191a739f80836e9a6bfe734ec59ddba991a3ff3b322ec7e356d  gzip-1.12.tar.lz
"
