blob: 42bc6f87df10e557bacb65e8a7d5c4eae85ec440 (
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: Hans-Nikolai Viessmann <hand AT viess DOT mn>
pkgname='xmrig-proxy'
pkgver=6.22.0
pkgrel=1
pkgdesc='Stratum protocol proxy for Monero; HTTP API disabled, donation percentage is 0.'
arch=('x86_64')
url='https://github.com/xmrig/xmrig-proxy'
depends=('libuv')
makedepends=('cmake' 'libuv')
optdepends=('monero: XMR wallet'
'xmrig: XMR CPU miner')
license=('GPL-3.0-or-later')
install="${pkgname}.install"
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('772c220f91d118337726cc01769a7218cfd1d62c49116c7bd00fcfbee119005c')
prepare() {
cd "${pkgname}-${pkgver}"
# create build dir
[ -d build ] || mkdir build
# reset default donate level
echo "==> Resetting donation level to zero"
sed -i -e 's/constexpr const int kDefaultDonateLevel = 2;/constexpr const int kDefaultDonateLevel = 0;/g' src/donate.h
}
build() {
cd "${pkgname}-${pkgver}/build"
cmake -DWITH_HTTP=OFF ..
make
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm775 "build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 src/config.json "${pkgdir}/usr/share/doc/${pkgname}/config.json.example"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|