projects/aports·blob master · refs

42 lines · 1.3 KiB

1# Contributor: Sören Tempel <[email protected]>
2# Maintainer: Sören Tempel <[email protected]>
3pkgname=spike
4pkgver=1.1.0
5pkgrel=0
6pkgdesc="A simulator for the RISC-V instruction set architecture"
7url="https://github.com/riscv-software-src/riscv-isa-sim"
8arch="all !riscv64"
9license="BSD-3-Clause"
10makedepends="dtc"
11options="!check" # XXX: no proper upstream test suite
12source="
13 https://github.com/riscv-software-src/riscv-isa-sim/archive/refs/tags/v$pkgver/spike-$pkgver.tar.gz
14 0001-fix-with-gcc13.patch"
15builddir="$srcdir/riscv-isa-sim-$pkgver"
16
17prepare() {
18 default_prepare
19 update_config_sub
20}
21
22build() {
23 ./configure \
24 --build=$CBUILD \
25 --host=$CHOST \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --mandir=/usr/share/man \
29 --localstatedir=/var
30 make
31}
32
33package() {
34 # The shared libraries provided by spike aren't versioned,
35 # hence there is really no use in packaging them right now.
36 make DESTDIR="$pkgdir" install-exes
37}
38
39sha512sums="
40089f3ae8e505ffde7bb4d3d7ef2c5db082c616e135e4efe952151dd195b1493f46ae4c0e33fc6b708935397b80922c643cb9e66760cbf3b2286f1f927e8dee9a spike-1.1.0.tar.gz
4108007f8ebe03ba29f41663ddc69a0c324e63c4a5156aaffec62392d9ba5feaec99ac7be88c23c0b9a25c4f1bdfdaa525ce513ae6f2a4721d2e1dbf659247db12 0001-fix-with-gcc13.patch
42"