new package: libmdbx
This commit is contained in:
parent
d196da101f
commit
c6137be9d3
11
packages/libmdbx/build.sh
Normal file
11
packages/libmdbx/build.sh
Normal 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
|
||||
"
|
11
packages/libmdbx/src-osal.c.patch
Normal file
11
packages/libmdbx/src-osal.c.patch
Normal 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__) || \
|
Loading…
Reference in New Issue
Block a user