blob: b75f37cbb72054a893472ff2dbadc4b7b5803e2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Endlesseden <eden AT rose DOT place>
pkgname=ethash-lib
_pkgname=ethash
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' '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")
md5sums=('935ccbc1ba5f9113cc005b4aad8f068b')
sha256sums=('2cd202e2596cf0e6492fe1d866d537ae41bff62107f577d8d793d5e858173149')
options=(!ccache)
prepare() {
cd "$srcdir"
if [ -e "$_pkgname"-"$pkgver" ]; then
if [ ! -e "$_pkgname" ]; then
mv "$_pkgname"-"$pkgver" "$_pkgname"
fi
fi
}
build () {
cd "$srcdir/${_pkgname}"
if [ -d build ]; then
rm -r build
fi
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_SBINDIR="bin" \
-DETHASH_NATIVE=ON \
-DETHASH_BUILD_TESTS=OFF \
-DNATIVE=ON ..
# cmake --build .. # BUGGED!
make
}
package() {
cd "$_pkgname/build"
make DESTDIR=$pkgdir install
}
|