diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template index 860c8dbf660..9aee74d29ee 100644 --- a/srcpkgs/monero/template +++ b/srcpkgs/monero/template @@ -1,7 +1,8 @@ # Template file for 'monero' pkgname=monero -version=0.14.1.2 +version=0.15.0.0 revision=1 +_randomx_version="1.1.6" build_style=cmake configure_args="-DBUILD_GUI_DEPS=ON -DHAVE_LIBRESSL=1" conf_files="/etc/monerod.conf" @@ -16,8 +17,11 @@ short_desc="Private, secure, untraceable, decentralised digital currency" maintainer="Helmut Pozimski " license="BSD-3-Clause" homepage="https://getmonero.org" -distfiles="https://github.com/monero-project/monero/archive/v${version}.tar.gz" -checksum=4b167b4b44f85bc8ff0a557257f458f50b7fa99ab8b80f25d608c777068fe26f +distfiles="https://github.com/monero-project/monero/archive/v${version}.tar.gz + https://github.com/tevador/RandomX/archive/v${_randomx_version}.tar.gz" +checksum="310c578056df4a26819880b6bbcdd10b39f14da68783af84b2d6a7951c6ed2c5 + cf7946ff5f53401f24146e1472ec54f02338729147fdae091c831920acc390bb" +skip_extraction="v${_randomx_version}.tar.gz}" system_accounts="monero" if [ "$CROSS_BUILD" ]; then @@ -51,6 +55,15 @@ case "$XBPS_TARGET_MACHINE" in ;; esac +case "$XBPS_TARGET_MACHINE" in + *-musl) configure_args+=" -DSTACK_TRACE=OFF" +esac + +post_extract() { + tar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/v${_randomx_version}.tar.gz \ + --strip-components=1 -C ${wrksrc}/external/randomx +} + pre_configure() { case "$XBPS_TARGET_MACHINE" in armv[56]*|mips*) sed -i CMakeLists.txt \