2012-11-14 16:04:45 +00:00
|
|
|
# Template file for 'cgminer'
|
|
|
|
pkgname=cgminer
|
2013-11-23 11:43:26 +00:00
|
|
|
version=3.8.3
|
2012-11-14 16:04:45 +00:00
|
|
|
revision=1
|
|
|
|
build_style=gnu-configure
|
2013-11-23 11:43:26 +00:00
|
|
|
configure_args="
|
|
|
|
--enable-bflsc --enable-bitforce --enable-icarus --enable-modminer
|
|
|
|
--enable-avalon --enable-klondike --enable-bitfury --enable-hashfast
|
|
|
|
--enable-bab --with-system-libusb"
|
|
|
|
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"
|
2012-11-14 16:04:45 +00: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 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"
|
2013-11-23 11:43:26 +00:00
|
|
|
checksum=d88b5e85638dcc3437544aa35b97e6ec7823ed2516f972c1cdd862681f59f0d4
|
2013-09-02 09:08:44 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# We have latest jansson and libusb - just use them
|
2013-11-23 11:43:26 +00:00
|
|
|
sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson-2\.5.*||' \
|
|
|
|
-e 's|JANSSON_LIBS="compat/jansson-2\.5/src/\.libs/libjansson\.a"|JANSSON_LIBS=-ljansson|' \
|
|
|
|
-e 's|compat/Makefile||' \
|
|
|
|
-i configure.ac
|
|
|
|
|
|
|
|
sed -e 's|^JANSSON_INCLUDES= .*||' \
|
2013-11-23 14:45:58 +00:00
|
|
|
-e "s|^USBUTILS_INCLUDES = .*|USBUTILS_INCLUDES = -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() {
|
|
|
|
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
|
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
cgminer_package() {
|
|
|
|
conf_files="/etc/cgminer.conf"
|
|
|
|
pkg_install() {
|
2013-04-23 08:31:36 +00:00
|
|
|
vmove all
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|
2013-04-23 08:31:36 +00:00
|
|
|
|