# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gperf
version=3.1
build=1sml
homepage="https://www.gnu.org/software/gperf/"
download="http://ftp.gnu.org/pub/gnu/gperf/gperf-$version.tar.gz"
desc="perfect hash function generator in C++"
requires="gcc-libs"

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="
bfa6021ac95bb54737da8b6b7782fd13babacf540edb4dcb705ac841ad19225545b6ff57c78c276f457e916c89900ba3ba2e6421ed15a266e6e09d6c2a167c0f  gperf-3.1.tar.lz
"
