aports/testing/spike/APKBUILD
Natanael Copa 33d8336c40 testing/spike: disable on riscv64
build fails
2023-03-29 14:43:13 +02:00

35 lines
1.0 KiB
Plaintext

# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=spike
pkgver=1.1.0
pkgrel=0
pkgdesc="A simulator for the RISC-V instruction set architecture"
url="https://github.com/riscv-software-src/riscv-isa-sim"
arch="all !riscv64"
license="BSD-3-Clause"
makedepends="dtc"
options="!check" # XXX: no proper upstream test suite
source="https://github.com/riscv-software-src/riscv-isa-sim/archive/refs/tags/v$pkgver/spike-$pkgver.tar.gz"
builddir="$srcdir/riscv-isa-sim-$pkgver"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
package() {
# The shared libraries provided by spike aren't versioned,
# hence there is really no use in packaging them right now.
make DESTDIR="$pkgdir" install-exes
}
sha512sums="
089f3ae8e505ffde7bb4d3d7ef2c5db082c616e135e4efe952151dd195b1493f46ae4c0e33fc6b708935397b80922c643cb9e66760cbf3b2286f1f927e8dee9a spike-1.1.0.tar.gz
"