diff options
author | EndlessEden | 2021-08-21 11:27:50 +1000 |
---|---|---|
committer | EndlessEden | 2021-08-21 11:27:50 +1000 |
commit | aa4006636ebd07e823fbab3db717ec6b5dcd3ab8 (patch) | |
tree | b16b5286299fe6efd6a0c9e14f2bf09e4b8f0d9c | |
parent | dd896e5f998987bc478614782a21c46615cdcfff (diff) | |
download | aur-aa4006636ebd07e823fbab3db717ec6b5dcd3ab8.tar.gz |
Fixed, changed sources; seperated out properly AND Build-tested.
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 20 insertions, 13 deletions
@@ -1,20 +1,23 @@ pkgbase = ethash-lib pkgdesc = C/C++ implementation of Ethash – the Ethereum Proof of Work algorithm - pkgver = r506.e4a15c3 + pkgver = 0.7.0 pkgrel = 1 url = https://github.com/chfast/ethash arch = any license = GPL3 makedepends = cmake - makedepends = gcc + makedepends = gcc10 makedepends = perl makedepends = python makedepends = git provides = ethash + provides = ethash-lib conflicts = ethash + conflicts = ethash-lib + conflicts = ethash-git + conflicts = ethash-lib-git options = !ccache - source = ethash::git+https://github.com/chfast/ethash.git + source = ethash.tar.gz::https://github.com/chfast/ethash/archive/refs/tags/v0.7.0.tar.gz sha256sums = SKIP pkgname = ethash-lib - @@ -2,27 +2,30 @@ pkgname=ethash-lib _pkgname=ethash -pkgver=r506.e4a15c3 +pkgver=0.7.0 pkgrel=1 pkgdesc="C/C++ implementation of Ethash – the Ethereum Proof of Work algorithm" arch=('any') url="https://github.com/chfast/ethash" license=('GPL3') -makedepends=('cmake' 'gcc' 'perl' 'python' 'git') -provides=("$_pkgname") -conflicts=("$_pkgname") -source=($_pkgname::"git+${url}.git") +makedepends=('cmake' 'gcc10' 'perl' 'python' 'git') +provides=("$_pkgname" "$pkgname") +conflicts=("$_pkgname" "$pkgname" "$_pkgname-git" "$pkgname-git") +source=($_pkgname.tar.gz::"$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('SKIP') options=(!ccache) -pkgver() { - cd "$srcdir/${_pkgname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +prepare() { + cd "$srcdir" + if [ -e "$_pkgname"-"$pkgver" ]; then + if [ ! -e "$_pkgname" ]; then + mv "$_pkgname"-"$pkgver" "$_pkgname" + fi + fi } build () { cd "$srcdir/${_pkgname}" - git submodule update --init --recursive if [ -d build ]; then rm -r build @@ -33,6 +36,7 @@ build () { -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_SBINDIR="bin" \ -DETHASH_NATIVE=ON \ + -DETHASH_BUILD_TESTS=OFF \ -DNATIVE=ON .. # cmake --build .. # BUGGED! make |