# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=xmrig pkgver=6.20.0 pkgrel=0 pkgdesc="XMRig is a high performance Monero (XMR) miner" url="https://xmrig.com/" arch="aarch64 x86 x86_64" # officially supported by upstream license="GPL-3.0-or-later" options="!check" # No test suite from upstream makedepends=" cmake hwloc-dev libmicrohttpd-dev linux-headers libuv-dev openssl-dev>3 samurai " subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/xmrig/xmrig/archive/v$pkgver.tar.gz enable-donateless-mode.patch " build() { case "$CARCH" in aarch64*) local opts="-DARM_TARGET=8" ;; esac cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DWITH_CUDA=OFF \ -DWITH_OPENCL=OFF \ $opts cmake --build build } package() { install -Dm 755 build/xmrig $pkgdir/usr/bin/xmrig install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md } sha512sums=" 52a32f6a2aec8e4660fe408eac483456e705721fad139fa863a55ca4cc7144872b286d716ae4ffbfd6977f2b29ae10766c40bb02362fbf2b8fa2889c0c6d488a xmrig-6.20.0.tar.gz 40cd7e3a884920951ec48efebbea5d7181deaeef6a226444a46ad8dc83b54eceae954c8d28952c21d63a15a4947eac72d1024b83684b5cb15437d3c8d32b006a enable-donateless-mode.patch "