blob: 87b38db98a7d8c789e8b59384b375c7db667cda7 (
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
|
# Maintainer: Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: Omar Pakker <omar.pakker@oracle.com>
pkgname=ccminer
pkgver=2.3.1
pkgrel=1
pkgdesc="Coin miner using CUDA for nVidia GPUs."
arch=('x86_64')
url="http://ccminer.org/"
license=('GPL3')
depends=('cuda' 'curl' 'jansson' 'openssl-1.0' 'nvidia-utils')
options=('!emptydirs')
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/tpruvot/ccminer/archive/${pkgver}-tpruvot.tar.gz")
sha256sums=('68bb8685ddae40b36af5f8418dfae5782819b8e202f1d723f6e12f8c58e73cd4')
build() {
cd "${srcdir}/ccminer-${pkgver}-tpruvot"
./autogen.sh
./configure \
CPPFLAGS='-I/usr/include/openssl-1.0' \
LDFLAGS='-L/usr/lib/openssl-1.0' \
CUDA_CFLAGS='--shared --compiler-options "-fPIC"' \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--with-cuda=/opt/cuda
make
}
package() {
cd "${srcdir}/ccminer-${pkgver}-tpruvot"
make DESTDIR="${pkgdir}/" install
install -Dm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|