diff options
author | Sebastian Stammler | 2016-11-04 22:40:43 +0100 |
---|---|---|
committer | Sebastian Stammler | 2016-11-04 22:52:04 +0100 |
commit | 10ab811a5429bcb772b214749b1808ac124490a8 (patch) | |
tree | 20b3ea714a6b3903487f3537b42e5b0980a5d54f /PKGBUILD | |
download | aur-10ab811a5429bcb772b214749b1808ac124490a8.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8cc4d9d47c03 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# NiceHash equihash miner. CPU xenocat solver build +# Maintainer: Sebastian Stammler <echo c2ViQGhkZG4uc3BhY2UK|base64 -d> +_pkgname=nheqminer-cpu +pkgname=${_pkgname}-git +pkgver=0.4b.r1.ge2a73b4 +pkgrel=1 +pkgdesc="zcash equihash miner by NiceHash. Xenoncat CPU solver build." +arch=('x86_64') +url="https://github.com/nicehash/nheqminer/" +license=('MIT') +depends=('boost') +makedepends=('git') +optdepends=('zcash: zcash node and tools') +source=("${pkgname}::git+https://github.com/nicehash/nheqminer.git") +md5sums=('SKIP') + +pkgver() { + cd "${pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +_build_dir="Linux_cmake/nheqminer_cpu" +build() { + cd "${pkgname}/cpu_xenoncat/Linux/asm/" + sh assemble.sh + cd "../../../${_build_dir}" + cmake . + make -j $(nproc) +} + +package() { + cd "${pkgname}" + install -D -m755 "${_build_dir}/nheqminer_cpu" -t "${pkgdir}/usr/bin/" + install -D -m644 LICENSE_MIT -t "${pkgdir}/usr/share/licenses/${pkgname}/" +} |