summaryrefslogtreecommitdiff
path: root/libre/bfgminer-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/bfgminer-libre/PKGBUILD')
-rw-r--r--libre/bfgminer-libre/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/libre/bfgminer-libre/PKGBUILD b/libre/bfgminer-libre/PKGBUILD
new file mode 100644
index 000000000..eb98f4aa9
--- /dev/null
+++ b/libre/bfgminer-libre/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id: PKGBUILD 103233 2013-12-30 17:04:09Z tredaelli $
+# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
+# Contributor: Andy Weidenbaum <archbaum@gmail.com>
+
+_pkgname=bfgminer
+pkgname=bfgminer-libre
+pkgver=3.9.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' 'libevent' 'libmicrohttpd' 'libusbx' 'lm_sensors')
+makedepends=('uthash' 'yasm')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+url='https://bitcointalk.org/index.php?topic=168174.0'
+license=('GPL3')
+source=(http://luke.dashjr.org/programs/bitcoin/files/$_pkgname/$pkgver/$_pkgname-$pkgver.tbz2
+ remove-dangerous-rpath.patch)
+sha256sums=('4250ec5ccb0fd9bd8c6d35608b13b3e2f07857e46abc09b94514a2fd2af80f40'
+ 'd26d07ca23ae25798c4db37cfda1a6a76f22d06e73efab1ddf62b3e1a7eef04c')
+
+prepare() {
+ cd "$srcdir"/$_pkgname-$pkgver
+
+ patch -p0 < "${srcdir}"/remove-dangerous-rpath.patch
+ NOSUBMODULES=1 ./autogen.sh
+}
+
+build() {
+ cd "$srcdir"/$_pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --enable-cpumining \
+ --enable-bfsb \
+ --enable-metabank \
+ --enable-scrypt \
+ --enable-opencl \
+ --with-udevrulesdir=/usr/lib/udev/rules.d
+ # --enable-knc (FS#33640)
+ make
+}
+
+package() {
+ cd "$srcdir"/$_pkgname-$pkgver
+
+ make DESTDIR="$pkgdir" install
+}