diff options
author | Emiel Wiedijk | 2018-02-27 11:47:07 +0100 |
---|---|---|
committer | Emiel Wiedijk | 2018-02-27 11:50:52 +0100 |
commit | fb48e0d73b5ad810db6f81ff2646f4abfb8d8bda (patch) | |
tree | 8dd3cd2c9e1cd0a2b6e11da159248437d5325970 | |
parent | dafb1683e80762ba8f896399cfa89f29fe1a693a (diff) | |
download | aur-fb48e0d73b5ad810db6f81ff2646f4abfb8d8bda.tar.gz |
ethminer - remove CUDA support and cleanup package
* To ensure that the user who wants to use CUDA has CUDA installed at
compile time, this package has been split into ethminer and
ethminer-cuda.
* Update my email address.
* Download to ethminer-$pkgver.tar.gz, not to v$pkgver.tar.gz.
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 12 insertions, 23 deletions
@@ -1,16 +1,15 @@ pkgbase = ethminer - pkgdesc = Ethereum miner with OpenCL, CUDA and stratum support. + pkgdesc = Ethereum miner with OpenCL and stratum support (built without CUDA). pkgver = 0.13.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/ethereum-mining/ethminer arch = x86_64 license = MIT makedepends = cmake makedepends = python depends = mesa - optdepends = cuda: NVIDIA cuda mining support conflicts = ethereum - source = https://github.com/ethereum-mining/ethminer/archive/v0.13.0.tar.gz + source = ethminer-0.13.0.tar.gz::https://github.com/ethereum-mining/ethminer/archive/v0.13.0.tar.gz sha256sums = 72bf827a922b797d556f8f03980185c4857bb82074b4c8b5f63b5d5e140893b8 pkgname = ethminer @@ -1,11 +1,11 @@ -# Maintainer: aimileus < $(echo YWltaWxpdXNAcHJvdG9ubWFpbC5jb20K | base64 -d) > +# Maintainer: aimileus <me at aimileus dot nl> # Contributor: Afri 5chdn <aur@5chdn.co> # Contributor: Andy Weidenbaum <archbaum@gmail.com> pkgname=ethminer pkgver=0.13.0 -pkgrel=1 -pkgdesc="Ethereum miner with OpenCL, CUDA and stratum support." +pkgrel=2 +pkgdesc="Ethereum miner with OpenCL and stratum support (built without CUDA)." arch=('x86_64') url="https://github.com/ethereum-mining/ethminer" license=('MIT') @@ -14,34 +14,24 @@ makedepends=( 'cmake' 'python' ) -optdepends=('cuda: NVIDIA cuda mining support') conflicts=('ethereum') -source=("https://github.com/ethereum-mining/ethminer/archive/v${pkgver}.tar.gz") +source=("$pkgname-$pkgver.tar.gz::https://github.com/ethereum-mining/ethminer/archive/v$pkgver.tar.gz") sha256sums=('72bf827a922b797d556f8f03980185c4857bb82074b4c8b5f63b5d5e140893b8') build () { - cd $pkgname-$pkgver + cd "$pkgname-$pkgver" mkdir -p build && cd build - if [ -f '/opt/cuda/bin/nvcc' ]; then - export CC=gcc-6 - export CCX=g++-6 - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DETHASHCUDA=ON - else - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release - fi + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release make } package() { - cd $pkgname-$pkgver/build + cd "$pkgname-$pkgver/build" make DESTDIR=$pkgdir install } |