summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Ian-Xue2016-01-05 19:08:01 +0800
committerLi Ian-Xue2016-01-05 19:08:01 +0800
commit92642307a34266b00f447a1d963f27532e7649e4 (patch)
tree283fc3c76e63b62dd3ff8621a7d13e6b1aded0ea
downloadaur-92642307a34266b00f447a1d963f27532e7649e4.tar.gz
Initial commit.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD35
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..9b87b6eb576e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Tue Jan 5 11:07:32 UTC 2016
+pkgbase = riscv-isa-sim-git
+ pkgdesc = Spike, a RISC-V ISA Simulator
+ pkgver = r496.785762c
+ pkgrel = 1
+ url = https://github.com/riscv/riscv-isa-sim
+ arch = x86_64
+ arch = i686
+ license = BSD
+ makedepends = git
+ depends = riscv-fesvr-git
+ provides = riscv-isa-sim
+ conflicts = riscv-isa-sim
+ source = git+https://github.com/riscv/riscv-isa-sim
+ md5sums = SKIP
+
+pkgname = riscv-isa-sim-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9d2bf5642b10
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+pkgname=riscv-isa-sim-git # '-bzr', '-git', '-hg' or '-svn'
+pkgver=r496.785762c
+pkgrel=1
+pkgdesc="Spike, a RISC-V ISA Simulator"
+arch=(x86_64 i686)
+url="https://github.com/riscv/riscv-isa-sim"
+license=('BSD')
+groups=()
+depends=(riscv-fesvr-git)
+makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
+source=('git+https://github.com/riscv/riscv-isa-sim')
+md5sums=('SKIP')
+noextract=()
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ 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
+}