# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gdbm
version=1.23
build=2sml
homepage="https://www.gnu.org.ua/software/gdbm/"
download="https://ftp.gnu.org/gnu/gdbm/gdbm-$version.tar.gz"
desc="set of database routines that work similar to the standard UNIX dbm routines"
requires="readline"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
eee8e46baecaeb9e8e4844d7a941195bd9e85ac04133499634ea5a1de9a1eaa3dd80da9fdf92ba29f2b54c6960b5c6f3eaf96c09117c1128568722ddbb3104f8  gdbm-1.23.tar.lz
"
