# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: hokkjoy <hokkjoy@pickaxelinux.org>
pkgname=randomx
pkgver=1.1.7
pkgrel=2
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=()
makedepends=('git' 'cmake')
source=("git+https://github.com/tevador/RandomX.git#tag=v${pkgver}")
md5sums=('SKIP')

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

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