blob: ca827ba82c84ae81ea9bbb42f7749859a89ea1c7 (
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
|
# Maintainer: Stephen Erisman <aur at serisman dot com>
pkgname='xmrig-mo-beta'
pkgver='6.2.0mo2'
pkgrel='1'
pkgdesc='Beta Version - High performance RandomX and CryptoNight CPU 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.2.0-beta-mo2.tar.gz"
"${pkgname}.service"
"${pkgname}.sysusers")
sha256sums=('2dee3f4f7e629a1a10293d14159833fe7613d4bc252b94fe4582b3cdb69426ed'
'1bec7f2714cbf40ef9f881684cc8a13dc35d2e1e376ce55f7f1319ccb630f0d7'
'd8f499302fb2b642fe02586c81c410a299e0a6e133aef1cc1c783bcdcb3f44f6')
prepare() {
cd "xmrig-6.2.0-beta-mo2"
[ -d build ] || mkdir build
msg2 "Reseting donation level to zero"
sed -i -e 's/constexpr const int kDefaultDonateLevel = 5;/constexpr const int kDefaultDonateLevel = 0;/g' \
-e 's/constexpr const int kMinimumDonateLevel = 1;/constexpr const int kMinimumDonateLevel = 0;/g' src/donate.h
}
build() {
cd "xmrig-6.2.0-beta-mo2/build"
cmake .. \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_BUILD_TYPE=Release
make -j$(getconf _NPROCESSORS_ONLN)
}
package() {
cd "xmrig-6.2.0-beta-mo2"
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"
}
|