# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: hokkjoy <hokkjoy@pickaxelinux.org>
pkgname=randomx
pkgver=1.2.1
pkgrel=1
pkgdesc="RandomX: The proof of work algorithm based on random code execution"
arch=(x86_64 powerpc64le)
url="https://github.com/tevador/RandomX"
license=('BSD')
depends=('glibc')
makedepends=('git' 'cmake')
source=("git+https://github.com/tevador/RandomX.git#tag=v${pkgver}")
sha256sum=()

build() {
  cd "$srcdir/RandomX"
  cmake . -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir/RandomX"
  make DESTDIR=${pkgdir} install
}
sha256sums=('36d2182e5d7a71823eef3c66ed9f41c1487332c0f59a4a40e9950f2fda62f2f4')
