summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d6aff249a2ec306f67575dd97d2eaf3633efbad (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
#Maintainor TJM <tjm@member.fsf.org> PGP: 0xC62463BE9F6B2D7D
#Contributor Huiyiqun <huiyiqun@gmail.com>

pkgname=xmr-stak-cpu-git
pkgver=r246.5a03fc1
pkgrel=1
pkgdesc="Monero CPU miner"
arch=('x86_64')
url="https://github.com/fireice-uk/xmr-stak-cpu"
license=('GPL3')
makedepends=('git' 'cmake')
depends=('libmicrohttpd' 'openssl' 'hwloc')
source=('git+https://github.com/fireice-uk/xmr-stak-cpu.git'
        'no-donate.patch')
sha256sums=('SKIP'
			'69c46b44922b9dbdc371d8af60413753538e3d4169227cd3614e3d7d2ecd958e')

pkgver() {
    cd "$srcdir/xmr-stak-cpu"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir/xmr-stak-cpu"
    patch -i ../../no-donate.patch
}

build() {
    cd "$srcdir/xmr-stak-cpu"
    cmake .
    make
}

package() {
    install -D -m755 "$srcdir/xmr-stak-cpu/bin/xmr-stak-cpu" -t "$pkgdir/usr/bin/"
    install -D -m644 "$srcdir/xmr-stak-cpu/config.txt" "$pkgdir/etc/xmr-stak-cpu.json"
}