summaryrefslogtreecommitdiff
path: root/repo/monero/monero.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/monero/monero.xibuild
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/monero/monero.xibuild')
-rw-r--r--repo/monero/monero.xibuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/repo/monero/monero.xibuild b/repo/monero/monero.xibuild
new file mode 100644
index 0000000..06c09d7
--- /dev/null
+++ b/repo/monero/monero.xibuild
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+NAME="monero"
+DESC="Secure, private, untraceable cryptocurrency"
+
+MAKEDEPS=" boost cmake cppzmq hidapi libsodium miniupnpc openpgm openssl rapidjson readline unbound zeromq "
+
+PKG_VER=0.17.3.0
+_ver_randomx=ae8e98b681766f31d49ac562dd6974906156e07b
+_ver_supercop=633500ad8c8759995049ccd022107d1fa8a1bbc9
+SOURCE="https://github.com/monero-project/monero/archive/refs/tags/v$PKG_VER.tar.gz"
+
+ADDITIONAL="
+easylogging.patch
+system-miniupnpc.patch
+version-string.patch
+
+https://github.com/tevador/RandomX/archive/$_ver_randomx.tar.gz
+https://github.com/monero-project/supercop/archive/$_ver_supercop.tar.gz"
+
+
+prepare() {
+ apply_patches
+
+ rm -fr external/randomx external/supercop
+ ln -s $BUILD_ROOT/RandomX-$_ver_randomx external/randomx
+ ln -s $BUILD_ROOT/supercop-$_ver_supercop external/supercop
+}
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSTACK_TRACE=OFF \
+ -DMANUAL_SUBMODULES=1
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+