summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD37
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4e83e22cbf1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = spike-git
+ pkgdesc = Spike, a RISC-V ISA Simulator
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/riscv/riscv-isa-sim
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ depends = dtc
+ conflicts = fesvr
+ replaces = fesvr
+ source = git+https://github.com/riscv/riscv-isa-sim
+ md5sums = SKIP
+
+pkgname = spike-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e2db590bfd6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com>
+# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
+# Contributor: Paulo Matos <paulo@matos-sorge.com>
+# Contributor: b4283 <unknown@unknowndomain.com>
+
+pkgname=spike-git
+pkgver=1
+pkgrel=1
+pkgdesc="Spike, a RISC-V ISA Simulator"
+arch=(x86_64)
+url="https://github.com/riscv/riscv-isa-sim"
+license=('BSD')
+groups=()
+depends=(dtc)
+makedepends=('git')
+replaces=(fesvr)
+conflicts=(fesvr)
+source=('git+https://github.com/riscv/riscv-isa-sim')
+md5sums=('SKIP')
+noextract=()
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ git submodule update --init --recursive
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+}