From ec1125664165a54dff0d820284660c56eb5e0dec Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sun, 5 May 2024 01:19:45 +0800 Subject: [PATCH] lmdb 0.9.32-1 --- PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ lmdb.pc | 10 ++++++++++ 2 files changed, 53 insertions(+) create mode 100644 PKGBUILD create mode 100644 lmdb.pc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a56a30f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=lmdb +pkgver=0.9.32 +pkgrel=1 +pkgdesc="Symas Lightning Memory-Mapped Database" +arch=('x86_64') +url="https://symas.com/lmdb" +license=('custom:OpenLDAP') +depends=('glibc') +makedepends=('git') +options=('!emptydirs') +source=(git+https://git.openldap.org/openldap/openldap.git#commit=e96d8dfa3951c06062a6fffbe1d7a2f3c9c1ff76 + lmdb.pc) +sha256sums=(SKIP + 84773d232ee0a11a307ed4374fc4cbf8d6ea1b0feeb3ee9499fe821e4b98a28f) + +prepare() { + + sed -e "s|@PKGVER@|$pkgver|" -i lmdb.pc +} + +build() { + cd openldap/libraries/liblmdb + + make CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" prefix=/usr libdir=/usr/lib64 +} + +package() { + cd openldap/libraries/liblmdb + + install -dm755 ${pkgdir}/usr/{bin,lib64,include,man/man1,share} + + make DESTDIR=${pkgdir} prefix=/usr libdir=/usr/lib64 install + + mv ${pkgdir}/usr/man ${pkgdir}/usr/share/man + + install -Dm644 ${srcdir}/lmdb.pc -t ${pkgdir}/usr/lib64/pkgconfig/ +} diff --git a/lmdb.pc b/lmdb.pc new file mode 100644 index 0000000..ca79245 --- /dev/null +++ b/lmdb.pc @@ -0,0 +1,10 @@ +prefix=/usr +libdir=${prefix}/lib64 +includedir=${prefix}/include + +Name: liblmdb +Description: Lightning Memory-Mapped Database +URL: https://symas.com/products/lightning-memory-mapped-database/ +Version: @PKGVER@ +Libs: -L${libdir} -llmdb +Cflags: -I${includedir}