aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Titov <oleg.titov@gmail.com>2021-05-31 12:03:34 -0500
committerOleg Titov <oleg.titov@gmail.com>2021-05-31 17:09:21 -0500
commit087a2429a84d3502ee6fe3e5d4e517c03fcb32ee (patch)
treeba04dd9d722aed628a4a07ea16c063afe27ac816
parentb63fc0fe1f5e2dfcf6af8f0f29cc60ecca7db87e (diff)
downloadaports-087a2429a84d3502ee6fe3e5d4e517c03fcb32ee.tar.gz
aports-087a2429a84d3502ee6fe3e5d4e517c03fcb32ee.tar.bz2
aports-087a2429a84d3502ee6fe3e5d4e517c03fcb32ee.tar.xz
testing/xmrig: enable donateless mode
-rw-r--r--testing/xmrig/APKBUILD7
-rw-r--r--testing/xmrig/enable-donateless-mode.patch11
2 files changed, 16 insertions, 2 deletions
diff --git a/testing/xmrig/APKBUILD b/testing/xmrig/APKBUILD
index 613dd09198..ef4fa5e25b 100644
--- a/testing/xmrig/APKBUILD
+++ b/testing/xmrig/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=xmrig
pkgver=6.12.2
-pkgrel=0
+pkgrel=1
pkgdesc="XMRig is a high performance Monero (XMR) miner"
url="https://xmrig.com/"
arch="aarch64 x86 x86_64" # officially supported by upstream
@@ -10,7 +10,9 @@ license="GPL-3.0-or-later"
options="!check" # No test suite from upstream
makedepends="cmake libmicrohttpd-dev libuv-dev openssl-dev hwloc-dev"
subpackages="$pkgname-doc"
-source="$pkgname-$pkgver.tar.gz::https://github.com/xmrig/xmrig/archive/v$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/xmrig/xmrig/archive/v$pkgver.tar.gz
+ enable-donateless-mode.patch
+ "
case "$CARCH" in
aarch64*) CMAKE_CROSSOPTS="-DARM_TARGET=8"; makedepends="$makedepends linux-headers" ;;
@@ -32,4 +34,5 @@ package() {
sha512sums="
a1e8d37955177f0988b0683c9b92dc6eef4bcaea68b3c1411917929a0573119cd13107e5a68a2a7971ec45bf2554aed5fc7d82c11d49e7411e95d9b81fe1a911 xmrig-6.12.2.tar.gz
+40cd7e3a884920951ec48efebbea5d7181deaeef6a226444a46ad8dc83b54eceae954c8d28952c21d63a15a4947eac72d1024b83684b5cb15437d3c8d32b006a enable-donateless-mode.patch
"
diff --git a/testing/xmrig/enable-donateless-mode.patch b/testing/xmrig/enable-donateless-mode.patch
new file mode 100644
index 0000000000..cd97293491
--- /dev/null
+++ b/testing/xmrig/enable-donateless-mode.patch
@@ -0,0 +1,11 @@
+--- a/src/donate.h 2021-05-31 16:57:41.000000000 -0500
++++ b/src/donate.h 2021-05-31 16:56:37.000000000 -0500
+@@ -45,7 +45,7 @@
+ * BTC: 1P7ujsXeX7GxQwHNnJsRMgAdNkFZmNVqJT
+ */
+ constexpr const int kDefaultDonateLevel = 1;
+-constexpr const int kMinimumDonateLevel = 1;
++constexpr const int kMinimumDonateLevel = 0;
+
+
+ #endif /* XMRIG_DONATE_H */