summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c7e9bc5eaa68cf83b4bd170f198eb16fe3cb293 (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
# Maintainer: mrxx <mrxx at cyberhome dot at>
# Contributor: Afri 5chdn <aur@5chdn.co>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=ethminer
pkgver=0.17.1
pkgrel=1
pkgdesc="Ethereum miner with OpenCL and stratum support (built without CUDA)."
arch=('x86_64')
url="https://github.com/ethereum-mining/ethminer"
license=('MIT')
depends=('mesa' 'pth')
makedepends=('cmake' 'python' 'git' 'opencl-headers')
conflicts=('ethminer-git')
source=("git+${url}.git#tag=v${pkgver}")
sha256sums=('SKIP')

build () {
  cd "$pkgname"
  git submodule update --init --recursive
  mkdir -p build && cd build

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DETHASHCUDA=OFF
  cmake --build .
}

package() {
  cd "$pkgname/build"
  make DESTDIR=$pkgdir install
}