APKBUILD 989 Bytes
Newer Older
Oleg Titov's avatar
Oleg Titov committed
1
# Contributor: Oleg Titov <oleg.titov@gmail.com>
Oleg Titov's avatar
Oleg Titov committed
2
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
Oleg Titov's avatar
Oleg Titov committed
3
4

pkgname=xmrig
Oleg Titov's avatar
Oleg Titov committed
5
pkgver=2.11.0
Oleg Titov's avatar
Oleg Titov committed
6
7
8
pkgrel=0
pkgdesc="XMRig is a high performance Monero (XMR) miner"
url="https://github.com/xmrig/xmrig"
9
arch="x86_64 x86"
Oleg Titov's avatar
Oleg Titov committed
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
license="GPL-3.0"
makedepends="cmake libmicrohttpd-dev libuv-dev openssl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xmrig/xmrig/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

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

check() {
	cd "$builddir"
	# xmrig -V returns 2
	build/xmrig -V || test $? = 2
}

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

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

Oleg Titov's avatar
Oleg Titov committed
37
sha512sums="0e9ca0206c67c7c7720d6b512296ee2a384b6be58b8a3b589ca1ec37c9fa5005dcdd07709b4d66fc7b3794aa6fd27f81c30d2b85867b3eb032ae82f7e7399f19  xmrig-2.11.0.tar.gz"