updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / cgminer / PKGBUILD
blob80e7d90bbf930e02ac2196c05f29d4488af9c5c5
1 # Contributor: Thomas Dziedzic < gostrc at gmail >
2 # Maintainer: monson <holymonson@gmail.com>
4 pkgname=cgminer
5 pkgver=2.1.2
6 pkgrel=1
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'
9 license=('GPL2')
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')
21 build() {
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
31   
32   make
35 package() {
36   cd "$srcdir"/$pkgname-$pkgver
38   make DESTDIR="$pkgdir" install
39   
40 #  install -Dm600 "example-cfg.json" "${pkgdir}/etc/cpuminer.json"