# NiceHash equihash miner. Tromp GPU/CUDAsolver build _flavour="cuda" pkgname="nheqminer-aayanl-${_flavour}-git" pkgver=0.5c.r4.g7d2238d pkgrel=1 pkgdesc="zcash equihash miner by NiceHash. Djezo GPU/CUDA solver build. Forked by aayanl." arch=('x86_64') url="https://github.com/nicehash/nheqminer/" license=('MIT') depends=('boost' 'cuda') makedepends=('git' 'cmake' 'gcc5') optdepends=('zcash: zcash node and tools') conflicts=("nheqminer-${_flavour}-git") source=("${pkgname}::git+https://github.com/aayanl/nheqminer.git") md5sums=('SKIP') pkgver() { cd "${pkgname}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } _build_dir="build_${_flavour}" build() { # Fix hardcoded sources path sed -ie 's#\.\.\/nheqminer#\.\.\/'"${pkgname}"'#g' "${pkgname}/CMakeLists.txt" mkdir -p ${_build_dir} cd ${_build_dir} # Since we don't use make install, skip setting RPATH in the binary # and use gcc-5 for compilation. Add COMPUTE=30 (or similar) right after # 'cmake' if you need to change nvidia compute version of your card(s) cmake \ -DCMAKE_SKIP_BUILD_RPATH=true \ -DCMAKE_C_COMPILER=/usr/bin/gcc-5 \ -DCMAKE_CXX_COMPILER=/usr/bin/g++-5 \ -DCMAKE_RANLIB=/usr/bin/gcc-ranlib-5 \ -DCMAKE_AR=/usr/bin/gcc-ar-5 \ -DUSE_CUDA_DJEZO=true \ -DUSE_CPU_XENONCAT=false \ ../${pkgname} make -j $(nproc) } package() { install -D -m755 "${_build_dir}/nheqminer" "${pkgdir}/usr/bin/nheqminer_${_flavour}" install -D -m644 "${pkgname}/LICENSE_MIT" -t "${pkgdir}/usr/share/licenses/${pkgname}/" }