summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 689e9645acc3b21d7c8aa793966f06bf9cd054b9 (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
# Maintainer: Hui Yiqun(huiyiqun@gmail.com)
pkgname=xmr-stak-git
pkgver=r1098.752fd1e
pkgrel=1
pkgdesc="Unified All-in-one Monero miner"
arch=('x86_64')
url="https://github.com/fireice-uk/xmr-stak"
license=('GPL3')
makedepends=('git' 'cmake' 'opencl-headers' 'gcc7')
depends=('libmicrohttpd' 'openssl' 'hwloc' 'cuda' 'ocl-icd')
source=('git+https://github.com/fireice-uk/xmr-stak.git'
        'no-donate.patch')
sha256sums=('SKIP'
            'b279c373afbce7cc8610c44f69a5e29a4b36969d131e2fd47229211a3903912a')

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

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

build() {
    cd "$srcdir/xmr-stak"
    CC=/bin/gcc-7 CXX=/bin/g++-7 cmake .
    make
}

package() {
    install -D -m755 "$srcdir/xmr-stak/bin/xmr-stak" -t "$pkgdir/usr/bin/"
    install -D -m644 "$srcdir/xmr-stak/bin/libxmrstak_cuda_backend.so" -t "$pkgdir/usr/lib"
    install -D -m644 "$srcdir/xmr-stak/bin/libxmrstak_opencl_backend.so" -t "$pkgdir/usr/lib"
}