blob: 37b13cc1ca2867954a6b3d3211c0899f6d1a70f4 (
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.5.2'
pkgrel='1'
pkgdesc='High Perf 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}.tar.gz")
sha256sums=('0559837edbe069158909c8379041c01d9e98fb2ec4a62d3fa26b95741b463275'
'774e7cb1e451d10fc5ef41820841da5510ca4018339f03223588480fd080f049'
'809592cd70335e7984a16738b435e9a08071bda938b251c48258a8f946f0bdb3')
prepare() {
cd "xmrig-${pkgver}"
mkdir build
cd "src/"
sed -i 's/constexpr const int kDonateLevel = 5;/constexpr const int kDonateLevel = 0;/g' donate.h
}
build() {
cd "xmrig-${pkgver}/build"
cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "xmrig-${pkgver}"
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"
}
|