void-packages/srcpkgs/cgminer/template
cr6gtx 9765981630 cgminer: update to 4.10.0
Closes: #6871 [via git-merge-pr]
2017-06-29 00:26:15 -07:00

39 lines
1.4 KiB
Bash

# Template file for 'cgminer'
pkgname=cgminer
version=4.10.0
revision=1
build_style=gnu-configure
configure_args="
--enable-avalon --enable-avalon2 --enable-bflsc --enable-bitfury \
--enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio \
--enable-icarus --enable-klondike --with-system-libusb"
hostmakedepends="pkg-config automake libtool yasm"
makedepends="libcurl-devel libusb-devel jansson-devel eudev-libudev-devel ncurses-devel"
conf_files="/etc/cgminer.conf"
short_desc="Multi-threaded multi-pool CPU and GPU miner for bitcoin"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="https://github.com/ckolivas/cgminer"
distfiles="http://ck.kolivas.org/apps/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=debd49291f8335b48496896dc28a43f941d1c981525950497acc89d0d5fc1e84
pre_configure() {
# We have latest jansson and libusb - just use them
sed -e 's|^AC_CONFIG_SUBDIRS.*compat/jansson.*||' \
-e 's|JANSSON_LIBS=\".*\"|JANSSON_LIBS=-ljansson|' \
-e 's|compat/Makefile||' \
-i configure.ac
sed -e 's|^JANSSON_CPPFLAGS= .*||' \
-e "s|^USBUTILS_CPPFLAGS = .*|USBUTILS_CPPFLAGS = -I${XBPS_CROSS_BASE}/usr/include/libusb-1.0|" \
-e 's|^SUBDIRS.*|SUBDIRS = lib ccan|' \
-i Makefile.am
rm -r compat
autoreconf -fi
}
post_install() {
vsv cgminer
vconf example.conf cgminer.conf
sed -i 's#/usr/local/bin#/usr/bin#g' ${DESTDIR}/etc/cgminer.conf
}