1 # Contributor: Thomas Dziedzic < gostrc at gmail >
2 # Maintainer: monson <holymonson@gmail.com>
7 pkgdesc="Multi-threaded multi-pool CPU and GPU miner for bitcoin, forked from cpuminer."
8 url='http://forum.bitcoin.org/index.php?topic=28402.0'
10 arch=('i686' 'x86_64')
11 depends=('ncurses' 'curl' 'libcl')
12 makedepends=('opencl-headers')
13 optdepends=('opencl-nvidia: OpenCL implementation for NVIDIA' \
14 'intel-opencl-sdk: OpenCL implementation for Intel' \
15 'amdstream: OpenCL implementation for AMD')
16 source=("http://ck.kolivas.org/apps/cgminer/$pkgname-$pkgver.tar.bz2")
17 md5sums=('9db3b227086dbb75225db9a9b52ce0a3')
19 [ $CARCH == 'x86_64' ] && makedepends+=('yasm')
22 cd "$srcdir"/$pkgname-$pkgver
24 # Use in-tree jansson since it is not compatible with jansson 2.0
25 #sed -e 's/^AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)$/request_jansson=true/' -i configure.ac
27 # Here you may want to use custom CFLAGS
28 #export CFLAGS="-O2 -march=native -mtune=native -msse2"
30 ./configure --prefix=/usr
36 cd "$srcdir"/$pkgname-$pkgver
38 make DESTDIR="$pkgdir" install
40 # install -Dm600 "example-cfg.json" "${pkgdir}/etc/cpuminer.json"