2012-11-14 17:04:45 +01:00
|
|
|
# Template file for 'cgminer'
|
|
|
|
pkgname=cgminer
|
2014-05-05 19:22:31 +02:00
|
|
|
version=4.3.3
|
2012-11-14 17:04:45 +01:00
|
|
|
revision=1
|
|
|
|
build_style=gnu-configure
|
2013-11-23 12:43:26 +01:00
|
|
|
configure_args="
|
|
|
|
--enable-bflsc --enable-bitforce --enable-icarus --enable-modminer
|
|
|
|
--enable-avalon --enable-klondike --enable-bitfury --enable-hashfast
|
2014-01-11 10:24:28 +01:00
|
|
|
--enable-bab --with-system-libusb --enable-minion"
|
2013-11-23 12:43:26 +01:00
|
|
|
hostmakedepends="pkg-config automake libtool yasm"
|
2013-09-02 11:08:44 +02:00
|
|
|
makedepends="libcurl-devel libusb-devel jansson-devel libudev-devel ncurses-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/cgminer.conf"
|
2012-11-14 17:04:45 +01:00
|
|
|
short_desc="Multi-threaded multi-pool CPU and GPU miner for bitcoin"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-3"
|
2012-12-21 08:25:48 +01:00
|
|
|
homepage="https://github.com/ckolivas/cgminer"
|
2012-11-14 17:04:45 +01:00
|
|
|
distfiles="http://ck.kolivas.org/apps/cgminer/cgminer-${version}.tar.bz2"
|
2014-05-05 19:22:31 +02:00
|
|
|
checksum=9252f0d4302a3473357823078221e94de21b661ccd327add178277caceed2aac
|
2013-09-02 11:08:44 +02:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# We have latest jansson and libusb - just use them
|
2013-12-25 10:39:21 +01:00
|
|
|
sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson-2\.5.*||' \
|
2013-11-23 12:43:26 +01:00
|
|
|
-e 's|JANSSON_LIBS="compat/jansson-2\.5/src/\.libs/libjansson\.a"|JANSSON_LIBS=-ljansson|' \
|
|
|
|
-e 's|compat/Makefile||' \
|
|
|
|
-i configure.ac
|
|
|
|
|
2013-12-25 10:39:21 +01:00
|
|
|
sed -e 's|^JANSSON_CPPFLAGS= .*||' \
|
|
|
|
-e "s|^USBUTILS_CPPFLAGS = .*|USBUTILS_CPPFLAGS = -I${XBPS_CROSS_BASE}/usr/include/libusb-1.0|" \
|
2013-11-23 12:43:26 +01:00
|
|
|
-e 's|^SUBDIRS.*|SUBDIRS = lib ccan|' \
|
|
|
|
-i Makefile.am
|
|
|
|
|
|
|
|
rm -r compat
|
|
|
|
autoreconf -fi
|
2013-09-02 11:08:44 +02:00
|
|
|
}
|
2012-11-14 17:04:45 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall example.conf 644 etc cgminer.conf
|
|
|
|
sed -i -e 's#/usr/local/bin#/usr/bin#g' ${DESTDIR}/etc/cgminer.conf
|
|
|
|
vinstall ${FILESDIR}/cgminer.service 644 usr/lib/systemd/system
|
|
|
|
}
|