summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d963e2497ba5a503b0f315bae1c9eeff41c16a2 (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
# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
pkgname=xmr-stak-rx-git
pkgver=r1519.6091644
pkgrel=2
pkgdesc="Unified All-in-one Monero miner with randomx fork"
arch=('x86_64')
url="https://github.com/fireice-uk/xmr-stak/releases/tag/1.0.0-rx"
license=('GPL3')
makedepends=('git' 'cmake' 'opencl-headers' 'cuda')
depends=('libmicrohttpd' 'openssl' 'hwloc' 'cuda' 'ocl-icd')
conflicts=('xmr-stak')
provides=('xmr-stak')
source=("${pkgname}::git+https://github.com/fireice-uk/xmr-stak.git#branch=xmr-stak-rx-dev")
sha256sums=('SKIP')

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

build() {
    cd "$srcdir/$pkgname"
    cmake .
    make
}

package() {
    install -D -m755 "$srcdir/$pkgname/bin/xmr-stak-rx" -t "$pkgdir/usr/bin/"
    install -D -m644 "$srcdir/$pkgname/bin/libxmr-stak-rx-backend.a" -t "$pkgdir/usr/lib/"
    install -D -m644 "$srcdir/$pkgname/bin/libxmr-stak-randomx.a" -t "$pkgdir/usr/lib/"
    install -D -m644 "$srcdir/$pkgname/bin/libxmrstakrx_cuda_backend.so" -t "$pkgdir/usr/lib"
    install -D -m644 "$srcdir/$pkgname/bin/libxmrstakrx_opencl_backend.so" -t "$pkgdir/usr/lib"
}