Commit d350aa2e authored by Leo's avatar Leo

main/lmdb: upgrade to 0.9.25

parent a88f1172
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lmdb
pkgver=0.9.24
pkgrel=1
pkgver=0.9.25
pkgrel=0
pkgdesc="Lightning Memory-Mapped Database"
url="https://symas.com/mdb"
arch="all"
license="OLDAP-2.8"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://github.com/LMDB/lmdb/archive/LMDB_$pkgver.tar.gz
source="https://git.openldap.org/openldap/openldap/-/archive/LMDB_$pkgver/openldap-LMDB_$pkgver.tar.gz
lmdb-make.patch
cacheflush.patch
"
builddir="$srcdir/$pkgname-LMDB_$pkgver/libraries/liblmdb"
builddir="$srcdir/openldap-LMDB_$pkgver/libraries/liblmdb"
build() {
cd "$builddir"
make CFLAGS+="-fPIC"
}
check() {
cd "$builddir"
LD_LIBRARY_PATH="$PWD" make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" prefix=/usr install
mkdir -p "$pkgdir"/usr/lib/pkgconfig
cat >"$pkgdir"/usr/lib/pkgconfig/lmdb.pc <<-EOF
prefix=/usr
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include
exec_prefix=\$prefix
libdir=\$exec_prefix/lib
includedir=\$prefix/include
Name: liblmdb
Description: Lightning Memory-mapped key-value database
URL: http://symas.com/mdb/
Version: $pkgver
Libs: -L\${libdir} -llmdb
Cflags: -I\${includedir}
Libs: -L\$libdir -llmdb
Cflags: -I\$includedir
EOF
}
......@@ -49,6 +46,6 @@ tools() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
sha512sums="c3a96c27f13c072ef5861bcea045d82f0a220dbd938579411ea6c38ac0696b3620c71f1e2cc56d31db5105f3533da95aba1ac34653d8bdcfa4f2f1fb831cccb1 LMDB_0.9.24.tar.gz
sha512sums="557b78590f4ae4ee8ba1989bd84e11ffe7d179eafd1767c8e0ee7ce644a91514399b2f88eefe8eecbe3c53686d1e5f1acd28f3fd9b8854d26194ed650213d33c openldap-LMDB_0.9.25.tar.gz
1ae28e850a32694f81cb7bf4abaab9cd96ef6c963de91f96810de3afee4da41102e310a6fb0ed889e9e9e04e00342f25272c04a8b483615dccfc039e34538594 lmdb-make.patch
f30b5f60ad3788abe3caa91a787c00190d6cceef5d20339624ce3d128f59de1a65d6913ab28f938c52237c40cbaef8a2bff2be7158da32f8c4562aa240fd11a2 cacheflush.patch"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment