app=gdbm
version=1.18
build=1sml
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"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-nls \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
7e62e23fcec1351e0db6fa7a530711bd1fe8c01d72a8c69f178af2556bb9d47f4e37ea689a196e6e33d6c27b536bf9f8075f17c7e208e2892bc8d2add9e5331c  gdbm-1.18.tar.lz
"
