blob: 6eb3d1887fae4220f1307941ade9b12e6e608a2e (
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
|
# Maintainer: Ryan Thomas <ryant0000@gmail.com>
# Contributor: Ryan Thomas <ryant0000@gmail.com.
pkgname='xmrig-donateless'
pkgver='2.6.0'
pkgrel='1'
pkgdesc='High Perf CryptoNote CPU Miner-No Donate Version'
arch=('x86_64' 'armv7h' 'aarch64')
url="https://github.com/xmrig/xmrig"
depends=('libuv' 'libmicrohttpd')
optdepends=('monero: wallet')
makedepends=('cmake' 'libuv' 'libmicrohttpd')
conflicts=('xmrig-bin' 'xmrig')
license=('GPL')
backup=("etc/xmrig/xmrig.conf")
source=("xmrig.service"
"xmrig.sysusers"
"${url}/archive/v${pkgver}-beta2.tar.gz")
sha256sums=('0559837edbe069158909c8379041c01d9e98fb2ec4a62d3fa26b95741b463275'
'774e7cb1e451d10fc5ef41820841da5510ca4018339f03223588480fd080f049'
'272e02d044611ebbf23658e24a127c469ad058c5d61eca5f3b7a96ab58f00ddf')
prepare() {
cd "xmrig-${pkgver}-beta2"
mkdir build
cd "src/"
sed -i 's/constexpr const int kDonateLevel = 5;/constexpr const int kDonateLevel = 0;/g' donate.h
}
build() {
cd "xmrig-${pkgver}-beta2/build"
cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "xmrig-${pkgver}-beta2"
install -Dm775 "build/xmrig" "${pkgdir}/usr/bin/xmrig"
install -Dm644 "src/config.json" "${pkgdir}/etc/xmmrig/xmrig.conf"
install -Dm644 "${srcdir}/xmrig.service" "${pkgdir}/usr/lib/systemd/system/xmrig@.service"
install -Dm0644 "${srcdir}/xmrig.sysusers" "${pkgdir}/usr/lib/sysusers.d/xmrig.conf"
}
|