aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xmrig-proxy/APKBUILD
blob: 599ffaa9c4de18a6b56673170790afe1e67c9576 (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
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>

pkgname=xmrig-proxy
pkgver=2.13.0
pkgrel=0
pkgdesc="XMRig Proxy is a high performance Monero (XMR) Stratum protocol proxy"
url="https://github.com/xmrig/xmrig-proxy"
arch="all"
license="GPL-3.0"
#depends="libuv libmicrohttpd openssl libuuid"
makedepends="cmake libuv-dev libmicrohttpd-dev openssl-dev util-linux-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xmrig/xmrig-proxy/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	mkdir build
	cd build
	cmake ..
	make
}

check() {
	cd "$builddir"/build
	./xmrig-proxy --version
}

package() {
	install -Dm 755 build/xmrig-proxy $pkgdir/usr/bin/xmrig-proxy

	install -Dm 644 -t "$pkgdir"/usr/share/licenses/$pkgname/ LICENSE
	install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md
}

sha512sums="f99f6230fd632d2a741f14dba9c756258e89809fa606afd4262f2c8da75e7c734ba07542ae9b1e54fa39c3bbcefa7221c7d40ab10902c82a4eeab809ac2a89af  xmrig-proxy-2.13.0.tar.gz"