pkgname=gdbm
pkgver=1.26
pkgdesc="GNU database library"
homepage="https://www.gnu.org/software/gdbm"
license=(GPL-3.0-or-later)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("aaa600665bc89e2febb3c7bd90679115")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr    \
              --disable-static \
              --enable-libgdbm-compat
  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}

