2012-11-14 16:04:45 +00:00
|
|
|
# Template file for 'cgminer'
|
|
|
|
pkgname=cgminer
|
2015-06-17 06:32:31 +00:00
|
|
|
version=4.9.2
|
2012-11-14 16:04:45 +00:00
|
|
|
revision=1
|
|
|
|
build_style=gnu-configure
|
2013-11-23 11:43:26 +00:00
|
|
|
configure_args="
|
2014-10-16 15:10:54 +00:00
|
|
|
--enable-avalon --enable-avalon2 --enable-bflsc --enable-bitfury \
|
|
|
|
--enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio \
|
|
|
|
--enable-icarus --enable-klondike --with-system-libusb"
|
2013-11-23 11:43:26 +00:00
|
|
|
hostmakedepends="pkg-config automake libtool yasm"
|
2013-09-02 09:08:44 +00:00
|
|
|
makedepends="libcurl-devel libusb-devel jansson-devel libudev-devel ncurses-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/cgminer.conf"
|
2012-11-14 16:04:45 +00:00
|
|
|
short_desc="Multi-threaded multi-pool CPU and GPU miner for bitcoin"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-11-14 16:04:45 +00:00
|
|
|
license="GPL-3"
|
2012-12-21 07:25:48 +00:00
|
|
|
homepage="https://github.com/ckolivas/cgminer"
|
2012-11-14 16:04:45 +00:00
|
|
|
distfiles="http://ck.kolivas.org/apps/cgminer/cgminer-${version}.tar.bz2"
|
2015-06-17 06:32:31 +00:00
|
|
|
checksum=7a94719c520c3ebd96fee65e2f737e87c9ae70c8e21865ee0ce16ac9b02e6e62
|
2013-09-02 09:08:44 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# We have latest jansson and libusb - just use them
|
2014-10-16 15:10:54 +00:00
|
|
|
sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson.*||' \
|
|
|
|
-e 's|JANSSON_LIBS=\".*\"|JANSSON_LIBS=-ljansson|' \
|
2013-11-23 11:43:26 +00:00
|
|
|
-e 's|compat/Makefile||' \
|
|
|
|
-i configure.ac
|
|
|
|
|
2013-12-25 09:39:21 +00:00
|
|
|
sed -e 's|^JANSSON_CPPFLAGS= .*||' \
|
|
|
|
-e "s|^USBUTILS_CPPFLAGS = .*|USBUTILS_CPPFLAGS = -I${XBPS_CROSS_BASE}/usr/include/libusb-1.0|" \
|
2013-11-23 11:43:26 +00:00
|
|
|
-e 's|^SUBDIRS.*|SUBDIRS = lib ccan|' \
|
|
|
|
-i Makefile.am
|
|
|
|
|
|
|
|
rm -r compat
|
|
|
|
autoreconf -fi
|
2013-09-02 09:08:44 +00:00
|
|
|
}
|
2012-11-14 16:04:45 +00:00
|
|
|
post_install() {
|
2014-10-16 15:10:54 +00:00
|
|
|
vsv cgminer
|
|
|
|
vconf example.conf cgminer.conf
|
|
|
|
sed -i 's#/usr/local/bin#/usr/bin#g' ${DESTDIR}/etc/cgminer.conf
|
2012-11-14 16:04:45 +00:00
|
|
|
}
|