summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbe3a8e018b0453fa3dd6bdd5fb99cd23e0f5911 (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
37
38
39
# Maintainer: Ho Tuan Kiet <tuankiet65@gmail.com>
# Maintainer: Omar Pakker <archlinux@opakker.nl>

_pkgname='ccminer'
pkgname="${_pkgname}-allium-git"
pkgver=r925.81931e3
pkgrel=1
pkgdesc="Cryptocurrency miner for nVidia GPUs using CUDA (with support for Allium algorithm used by Garlicoin)."
arch=('x86_64')
url="http://ccminer.org/"
license=('GPL3')
depends=('cuda' 'curl' 'jansson' 'nvidia-utils')
makedepends=('git' 'cuda' 'nvidia-utils')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
options=('!emptydirs')
source=("git+https://github.com/lenis0012/ccminer/")
sha256sums=('SKIP')

pkgver() {
	cd "ccminer"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "ccminer"

	./autogen.sh
	./configure CUDA_CFLAGS='--shared --compiler-options "-fPIC"' \
		--prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --with-cuda=/opt/cuda

	make
}

package() {
	cd "ccminer"
	make DESTDIR="${pkgdir}" install
}