new package: libmdbx

This commit is contained in:
Tee KOBAYASHI 2022-02-07 23:39:53 +09:00 committed by xtkoba
parent d196da101f
commit c6137be9d3
2 changed files with 22 additions and 0 deletions

11
packages/libmdbx/build.sh Normal file
View File

@ -0,0 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://erthink.github.io/libmdbx/
TERMUX_PKG_DESCRIPTION="An extremely fast, compact, powerful, embedded, transactional key-value database"
TERMUX_PKG_LICENSE="OpenLDAP"
TERMUX_PKG_LICENSE_FILE="COPYRIGHT, LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.11.4
TERMUX_PKG_SRCURL=https://github.com/erthink/libmdbx.git
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DBUILD_SHARED_LIBS=ON
"

View File

@ -0,0 +1,11 @@
--- a/src/osal.c
+++ b/src/osal.c
@@ -1292,7 +1292,7 @@
mounted = setmntent("/proc/mounts", "r");
#endif /* Linux */
if (!mounted)
- mounted = setmntent("/etc/mtab", "r");
+ mounted = setmntent("@TERMUX_PREFIX@/etc/mtab", "r");
if (mounted) {
const struct mntent *ent;
#if defined(_BSD_SOURCE) || defined(_SVID_SOURCE) || defined(__BIONIC__) || \