summaryrefslogtreecommitdiff
path: root/libre/cgminer-libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-09-01 23:34:47 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-09-01 23:34:47 -0300
commitccce2c7de4491f712ee49e70fed6539d233c7972 (patch)
treebc42c80dc85a90be66ee6db488d9d0a87ed8c515 /libre/cgminer-libre
parent6747fee61a7ea9789b75e294e20f1c7b0f4f46f7 (diff)
downloadabslibre-ccce2c7de4491f712ee49e70fed6539d233c7972.tar.gz
abslibre-ccce2c7de4491f712ee49e70fed6539d233c7972.tar.bz2
abslibre-ccce2c7de4491f712ee49e70fed6539d233c7972.zip
cgminer-libre-3.4.1-1: updating version
Diffstat (limited to 'libre/cgminer-libre')
-rw-r--r--libre/cgminer-libre/PKGBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/libre/cgminer-libre/PKGBUILD b/libre/cgminer-libre/PKGBUILD
index ecd2ace16..6e992807c 100644
--- a/libre/cgminer-libre/PKGBUILD
+++ b/libre/cgminer-libre/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 96190 2013-08-21 13:06:15Z fyan $
+# $Id: PKGBUILD 96553 2013-08-31 16:26:33Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: monson <holymonson@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
@@ -7,7 +7,7 @@
pkgname=cgminer-libre
_pkgflag=libre
-pkgver=3.4.0
+pkgver=3.4.1
pkgrel=1
pkgdesc="Multi-threaded multi-pool GPU, FPGA and ASIC miner for bitcoin and derivative coins, without nonfree OpenCL recommendation"
url='http://forum.bitcoin.org/index.php?topic=28402.0'
@@ -28,13 +28,22 @@ backup=("etc/conf.d/${pkgname%-$_pkgflag}" "etc/${pkgname%-$_pkgflag}.conf")
build() {
cd "$srcdir/${pkgname%-$_pkgflag}-$pkgver"
- # 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
+ # We have latest jansson and libusb - just use them
+ sed "s|ac_subdirs_all='compat/libusb\-1.0'||" -i ./configure
+ sed 's|subdirs="$subdirs compat/libusb\-1.0"||' -i ./configure
+ sed 's|LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"|LIBUSB_LIBS=-lusb-1.0|' -i ./configure
+ sed 's|JANSSON_LIBS="compat/jansson/libjansson.a"|JANSSON_LIBS=-ljansson|' -i ./configure
+ sed 's|compat/Makefile compat/jansson/Makefile||' -i ./configure
+
+ sed 's|JANSSON_INCLUDES = -I$(top_srcdir)/compat/jansson||' -i ./Makefile.in
+ sed 's|USBUTILS_INCLUDES = -I$(top_srcdir)/compat/libusb\-1.0/libusb|USBUTILS_INCLUDES = -I/usr/include/libusb-1.0|' -i ./Makefile.in
+ sed 's|SUBDIRS = lib compat ccan|SUBDIRS = lib ccan|' -i ./Makefile.in
+
+ rm -r compat
# Here you may want to use custom CFLAGS
#export CFLAGS="-O2 -march=native -mtune=native -msse2"
- #./autogen.sh
./configure \
--prefix=/usr \
--enable-scrypt \
@@ -61,6 +70,6 @@ package() {
install -Dm644 ${pkgname%-$_pkgflag}.conf "$pkgdir"/etc/${pkgname%-$_pkgflag}.conf
}
-sha512sums=('2f308c9285755b62608da4a6be3942d08b6cfff218238dbb4c15da7d02c8f2ac46cd7a9fbd69b7a46faa11962a937ba6327aa03852c291e69ff6158e50c1e5b6'
+sha512sums=('db648f18002ce558454fa0e4aa948146dcaeb473728c15503c8e908fc26507df25602edc5b8295cf578327bf43f99f9846d9580f9c3b4b08b03a0ca24da8f15c'
'99c38bc395848f9712ce172343d31f5c60f5d8ac1cfe2f48df8f3ec6c488fc275763a79c5ef36b99f32faa465b5a65284b38e8a63ef9b144075ee13971313b41'
'3317b60c6b1f14c47d8ee636113ef40a4023ab14054129de80a37947b381fd2b647a7053f4e1bb639efa225a514e862fa531908714c34040dda2d6221dde7f5f')