# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=xmrig pkgver=2.8.3 pkgrel=0 pkgdesc="XMRig is a high performance Monero (XMR) miner" url="https://github.com/xmrig/xmrig" arch="x86_64 x86" license="GPL-3.0" makedepends="cmake libmicrohttpd-dev libuv-dev openssl-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/xmrig/xmrig/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" mkdir build cd build cmake .. make } check() { cd "$builddir" # xmrig -V returns 2 build/xmrig -V || test $? = 2 } package() { install -Dm 755 build/xmrig $pkgdir/usr/bin/xmrig install -Dm 644 -t "$pkgdir"/usr/share/licenses/$pkgname/ LICENSE install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md } sha512sums="e709bdcb852a4da3ba00ed4d8b9af3d5963e5a1c0e6fa561e33518540d48ed49aee3a8b3cce9b12821eef329587250853d79de5197644fc2a4b6b6208537907d xmrig-2.8.3.tar.gz"