new package: ravencoin
This commit is contained in:
parent
4f79bc4f8e
commit
ed70f04fda
33
packages/ravencoin/build.sh
Normal file
33
packages/ravencoin/build.sh
Normal file
@ -0,0 +1,33 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://ravencoin.org/
|
||||
TERMUX_PKG_DESCRIPTION="A peer-to-peer blockchain, handling the efficient creation and transfer of assets from one party to another"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=4.3.2.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/RavenProject/Ravencoin/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=02e6c12220ba0f9378a3af790a57a0a6e11d7b091adfd91f555aab07341d62e3
|
||||
TERMUX_PKG_DEPENDS="boost, libevent, openssl"
|
||||
TERMUX_PKG_BUILD_DEPENDS="libdb"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--disable-tests
|
||||
--disable-wallet
|
||||
--with-boost=$TERMUX_PREFIX/lib
|
||||
--with-boost-libdir=$TERMUX_PREFIX/lib
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
autoreconf -fi
|
||||
|
||||
_NEED_DUMMY_LIBPTHREAD_A=
|
||||
_LIBPTHREAD_A=$TERMUX_PREFIX/lib/libpthread.a
|
||||
if [ ! -e $_LIBPTHREAD_A ]; then
|
||||
_NEED_DUMMY_LIBPTHREAD_A=true
|
||||
echo '!<arch>' > $_LIBPTHREAD_A
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
termux_step_post_make_install() {
|
||||
if [ $_NEED_DUMMY_LIBPTHREAD_A ]; then
|
||||
rm -f $_LIBPTHREAD_A
|
||||
fi
|
||||
}
|
15
packages/ravencoin/src-leveldb-util-env_posix.cc.patch
Normal file
15
packages/ravencoin/src-leveldb-util-env_posix.cc.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/src/leveldb/util/env_posix.cc
|
||||
+++ b/src/leveldb/util/env_posix.cc
|
||||
@@ -28,6 +28,12 @@
|
||||
#include "util/posix_logger.h"
|
||||
#include "util/env_posix_test_helper.h"
|
||||
|
||||
+#if defined __ANDROID__ && __ANDROID_API__ < 28
|
||||
+#define fread_unlocked fread
|
||||
+#define fwrite_unlocked fwrite
|
||||
+#define fflush_unlocked fflush
|
||||
+#endif
|
||||
+
|
||||
namespace leveldb {
|
||||
|
||||
namespace {
|
Loading…
Reference in New Issue
Block a user