# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=xmrig pkgver=5.5.0 pkgrel=0 pkgdesc="XMRig is a high performance Monero (XMR) miner" url="https://xmrig.com/" arch="all !s390x !ppc64le !aarch64" # gets stuck on aarch64 builder 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" case "$CARCH" in aarch64*) CMAKE_CROSSOPTS="-DARM_TARGET=8"; makedepends="$makedepends linux-headers" ;; armv7*) CMAKE_CROSSOPTS="-DARM_TARGET=7"; makedepends="$makedepends linux-headers" ;; armhf*) CMAKE_CROSSOPTS="-DARM_TARGET=7"; makedepends="$makedepends linux-headers" ;; esac build() { mkdir build cd build cmake .. $CMAKE_CROSSOPTS make } package() { install -Dm 755 build/xmrig $pkgdir/usr/bin/xmrig install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md } sha512sums="d7964e25fe3a7d96fb037b559b75a54e1d0a620de80353f7d2d54efef434c02f4dffc1fb54c9ff5e4e0f77008421e3db35f301760fdd54b89d2c337925c1dc90 xmrig-5.5.0.tar.gz"