# Description: The Lightning Memory-Mapped Database Manager
# URL: https://github.com/LMDB/lmdb
# Maintainer: Tim Biermann, tbier at posteo dot de

name=lmdb
version=0.9.30
release=1
source=(https://git.openldap.org/openldap/openldap/-/archive/LMDB_$version/openldap_LMDB_$version.tar.gz
  lmdb.pc)

build() {
  sed -i "s|@@VERSION@@|$version|" -i $SRC/lmdb.pc

  cd openldap-LMDB_$version-*/libraries/liblmdb
  make CFLAGS+=" -fPIC"
  make DESTDIR=$PKG prefix=/usr install
  install -Dm0644 $SRC/lmdb.pc -t $PKG/usr/lib/pkgconfig
}
