summaryrefslogtreecommitdiff
path: root/libre/bfgminer-libre/PKGBUILD
blob: 6c6e19ef4d41425d7b353a31a00015a0a89d852d (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
# $Id$
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

_pkgname=bfgminer
pkgname=bfgminer-libre
pkgver=3.0.0
pkgrel=1
pkgdesc="Bitcoin miner featuring overclocking, monitoring, fan speed control and remote management. For FPGA/GPU/CPU Bitcoin mining, without nonfree OpenCL recommendation."
arch=('i686' 'x86_64' 'mips64el')
depends=('curl' 'jansson')
replaces=$_pkgname
conflicts=$_pkgname
provides=$_pkgname=$pkgver
url='https://bitcointalk.org/index.php?topic=168174.0'
license=('GPL3')
options=(!libtool)
source=(http://luke.dashjr.org/programs/bitcoin/files/$_pkgname/$pkgver/$_pkgname-$pkgver.tbz2
        change-kernel-path.patch
        remove-dangerous-rpath.patch)
sha256sums=('86f7f977ed57b8d61c728f88a3e5962aa1df0723d667c45b1e1bfa5152292400'
            'a551f73a430809a9b13bb535a503d24f8fd6d35a07bc579b5616d270a1bbf369'
            '2c6d09a5e567f5099c9b117415013bf28e7b7aa75c436515d28bc7640f905db2')

[[ "$CARCH" == "x86_64" ]] && makedepends+=('yasm')

build() {
  cd "$srcdir"/$_pkgname-$pkgver

  patch -p0 < "${srcdir}"/change-kernel-path.patch
  patch -p0 < "${srcdir}"/remove-dangerous-rpath.patch
  autoreconf -fi
  ./configure --prefix=/usr --enable-cpumining --enable-scrypt
  make
}

package() {
  cd "$srcdir"/$_pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}