From ccc722b7ed330198d82a3cf28ead76d6d107a70a Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 6 Jun 2022 21:25:48 +0000 Subject: added java --- repo/lmdb/lmdb.xibuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 repo/lmdb/lmdb.xibuild (limited to 'repo/lmdb/lmdb.xibuild') diff --git a/repo/lmdb/lmdb.xibuild b/repo/lmdb/lmdb.xibuild new file mode 100644 index 0000000..222a220 --- /dev/null +++ b/repo/lmdb/lmdb.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="lmdb" +DESC="Lightning Memory-Mapped Database" + +MAKEDEPS="" + +PKG_VER=0.9.29 +SOURCE="https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_$PKG_VER.tar.gz" + +ADDITIONAL=" +cacheflush.patch +lmdb-make.patch +lmdb.pc +" + +prepare() { + cd libraries/liblmdb + apply_patches + sed -i "s|@@VERSION@@|$PKG_VER|" -i "$BUILD_ROOT"/*.pc +} + +build() { + make CFLAGS="$CFLAGS -fPIC" +} + +check() { + LD_LIBRARY_PATH="$PWD" make test +} + +package() { + make DESTDIR="$PKG_DEST" prefix=/usr install + + cd $BUILD_ROOT + for f in *.pc; do + install -Dm0644 $f "$PKG_DEST"/usr/lib/pkgconfig/$f + done +} -- cgit v1.2.1