summaryrefslogtreecommitdiff
path: root/repo/monero/monero.xibuild
blob: 338302534d667c856b24f0541fdc411efc8a3762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.18.1.1
_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
}