blob: 3b659b162b48004355a23a389610b0a08572bfbd (
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
|
# Contributor: Westly Ward <sonicrules1234 at gmail dot com>
# Contributor: anze <alberto.anzellotti@gmail.com>
# Maintainer: Matrix <thysupremematrix at tuta dot io
pkgname=nsfminer-git
pkgver=1.3.12.r141.g484ae84c0
pkgrel=1
pkgdesc="Ethereum miner with OpenCL and CUDA support derived from ethminer. RTX 30 series compatible."
arch=('x86_64')
url="https://github.com/Titaniumtown/nsfminer"
license=('GPL3')
depends=('mesa')
makedepends=('cmake>=3.5' "git" "perl" "python3" "cuda>=9.0")
provides=('nsfminer')
conflicts=('nsfminer')
source=("$pkgname::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgname
git submodule update --init --recursive
mkdir -p build
cmake -B build -S . \
-DCMAKE_INSTALL_PREFIX='/usr'
cmake --build build
}
package() {
cd "$pkgname/build"
make DESTDIR=$pkgdir install
}
|