blob: 427fb6c2ad68e92bb9ae710a53947a81f76d92bf (
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
50
51
52
53
54
55
56
57
58
|
# Maintainer: hokkjoy <hokkjoy@pickaxelinux.org>
pkgname=randomx-git
pkgver=r398.5ce5f49
pkgrel=1
pkgdesc="RandomX: The proof of work algorithm based on random code execution"
arch=('x86_64')
url="https://github.com/tevador/RandomX"
license=('BSD')
groups=()
depends=()
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/tevador/RandomX.git#branch=master')
noextract=()
md5sums=('SKIP')
pkgver() {
# cd "$srcdir/${pkgname%-git}"
cd "$srcdir/RandomX"
# Git, tags available
# printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p "$srcdir/RandomX/build"
# cd "$srcdir/${pkgname%-git}"
# patch -p1 -i "$srcdir/${pkgname%-git}.patch"
}
build() {
# cd "$srcdir/${pkgname%-git}"
cd "$srcdir/RandomX/build"
cmake -DARCH=native ..
make
}
#check() {
# cd "$srcdir/${pkgname%-git}"
# make -k check
#}
package() {
# cd "$srcdir/${pkgname%-git}"
cd "$srcdir/RandomX"
# make DESTDIR="$pkgdir/" install
install -Dm755 "${srcdir}/RandomX/build/randomx-benchmark" "${pkgdir}/usr/bin/randomx-benchmark"
install -Dm755 "${srcdir}/RandomX/build/randomx-codegen" "${pkgdir}/usr/bin/randomx-codegen"
install -Dm755 "${srcdir}/RandomX/build/randomx-tests" "${pkgdir}/usr/bin/randomx-tests"
}
|