2012-11-14 16:04:45 +00:00
|
|
|
# Template file for 'cgminer'
|
|
|
|
pkgname=cgminer
|
2013-06-19 12:40:00 +00:00
|
|
|
version=3.2.2
|
2012-11-14 16:04:45 +00:00
|
|
|
revision=1
|
|
|
|
build_style=gnu-configure
|
2013-04-23 08:31:36 +00:00
|
|
|
configure_args="--disable-adl --enable-bitforce
|
|
|
|
--enable-icarus --enable-avalon --enable-modminer --enable-ztex"
|
2013-04-12 06:55:23 +00:00
|
|
|
hostmakedepends="pkg-config yasm"
|
2013-04-23 08:31:36 +00:00
|
|
|
makedepends="libcurl-devel libusb-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-06-19 12:40:00 +00:00
|
|
|
checksum=9361f43b20cd77bd47001c1bb753c76d0a7f035acba6c1bb0f77240b7c148fd3
|
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
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="opencl"
|
|
|
|
desc_option_opencl="Enable support for OpenCL mining"
|
|
|
|
|
|
|
|
# Enable opencl by default on x86.
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
build_options_default="opencl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_opencl" ]; then
|
|
|
|
configure_args+=" --enable-scrypt --enable-opencl"
|
|
|
|
makedepends+=" opencl-headers nvidia-opencl"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-scrypt --disable-opencl"
|
|
|
|
fi
|
2013-06-19 12:40:00 +00:00
|
|
|
configure_args+=" --enable-bflsc --enable-bitforce"
|