void-packages/srcpkgs/cgminer/template

43 lines
1.5 KiB
Bash
Raw Normal View History

# Template file for 'cgminer'
pkgname=cgminer
2015-02-04 09:28:53 +01:00
version=4.9.1
revision=1
build_style=gnu-configure
2013-11-23 12:43:26 +01:00
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"
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"
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"
2012-12-21 08:25:48 +01:00
homepage="https://github.com/ckolivas/cgminer"
distfiles="http://ck.kolivas.org/apps/cgminer/cgminer-${version}.tar.bz2"
2015-02-04 09:28:53 +01:00
checksum=68d0d0ac623e5cff450febe4b7143a7def04c952008e2b1b040988a6270ab0e1
2013-09-02 11:08:44 +02:00
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|' \
2013-11-23 12:43:26 +01:00
-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
}
post_install() {
vsv cgminer
vconf example.conf cgminer.conf
sed -i 's#/usr/local/bin#/usr/bin#g' ${DESTDIR}/etc/cgminer.conf
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/cgminer.service 644 usr/lib/systemd/system
fi
}