blob: 732ed1e12f277aecbd59835f50386a857ca47508 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id: PKGBUILD 81049 2012-12-11 07:09:49Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: monson <holymonson@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: David Manouchehri <david@davidmanouchehri.com>
pkgname=cgminer
pkgver=2.10.0
_build=
pkgrel=2
pkgdesc="Multi-threaded multi-pool CPU and GPU miner for bitcoin, forked from cpuminer."
url='http://forum.bitcoin.org/index.php?topic=28402.0'
license=('GPL3')
arch=('i686' 'x86_64')
depends=('curl' 'libcl')
makedepends=('opencl-headers')
optdepends=('opencl-nvidia: OpenCL implementation for NVIDIA'
'opencl-catalyst: OpenCL implementation for AMD')
source=("http://ck.kolivas.org/apps/cgminer/$pkgname-$pkgver.tar.bz2"
"$pkgname.conf.d"
"$pkgname"
"$pkgname.service")
backup=("etc/conf.d/$pkgname" "etc/$pkgname.conf")
[ $CARCH == 'x86_64' ] && makedepends+=('yasm')
build() {
cd "$srcdir"
cd $pkgname-$pkgver${_build}
# Use in-tree jansson since it is not compatible with jansson 2.0
#sed -e 's/^AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)$/request_jansson=true/' -i configure.ac
# Here you may want to use custom CFLAGS
#export CFLAGS="-O2 -march=native -mtune=native -msse2"
./configure --prefix=/usr --enable-cpumining --disable-adl
make
}
package() {
cd "$srcdir"/$pkgname-$pkgver${_build}
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/$pkgname "$pkgdir"/etc/rc.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
install -Dm644 "$srcdir"/$pkgname.conf.d "$pkgdir"/etc/conf.d/$pkgname
sed 's#/usr/local/bin#/usr/bin#g' example.conf > $pkgname.conf
install -Dm644 $pkgname.conf "$pkgdir"/etc/$pkgname.conf
}
md5sums=('93437f0a26a409d9c06f7361befe9d0f'
'fe4a243fabe24608f5c05e40f0f118f6'
'ee39698273671fee0e98d4af16014c36'
'bd76fc92fedce18c59ccea2aa79cc664')
|