blob: 0cb73e96ce365897382c5c781ef3a741b713203a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Stephen Erisman <aur at serisman dot com>
pkgname='xmrig-mo'
pkgver='6.22.2mo1'
pkgrel='1'
pkgdesc='High performance RandomX, KawPow, CryptoNight, and AstroBWT CPU/GPU miner, with MoneroOcean auto alg switching'
arch=('x86_64')
url="https://github.com/MoneroOcean/xmrig"
depends=('libuv' 'openssl' 'hwloc')
makedepends=('cmake')
license=('GPL')
source=("${url}/archive/v6.22.2-mo1.tar.gz"
"${pkgname}.service"
"${pkgname}.sysusers")
sha256sums=('d2ce3ac11f0126dc3cecfd52ffd7b36faadb7fae9cb25346068d4d2b7ce3c2c2'
'eceb05ca62896015f4cb2866e9caa516efc9a77a370d9ecf2eaf4763ff315e5f'
'd8f499302fb2b642fe02586c81c410a299e0a6e133aef1cc1c783bcdcb3f44f6')
prepare() {
cd "xmrig-6.22.2-mo1"
[ -d build ] || mkdir build
msg2 "Resetting donation level to zero"
sed -i -E '/^(.*DonateLevel = )[0-9]+;$/s//\10;/' src/donate.h
#echo "$(echo '#include <stdexcept>' | cat - src/backend/opencl/runners/OclRyoRunner.cpp)" > src/backend/opencl/runners/OclRyoRunner.cpp
}
build() {
cd "xmrig-6.22.2-mo1/build"
cmake .. \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_BUILD_TYPE=Release
make -j$(getconf _NPROCESSORS_ONLN)
}
package() {
cd "xmrig-6.22.2-mo1"
install -Dm775 "build/xmrig" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "src/config.json" "${pkgdir}/etc/${pkgname}/${pkgname}.conf.example"
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm0644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
}
|