summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaxr19982019-04-25 20:31:33 +0200
committerMaxr19982019-04-25 20:33:01 +0200
commit2241abf6f3033b66e4e691f93d721ccf1de0d22e (patch)
treee99106317e29b584dfcf49448bfdb3e06be65bb2 /PKGBUILD
downloadaur-rv8-git.tar.gz
Initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..552b71db620
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Maxr1998 <max.rumpf1998@gmail.com>
+pkgname="rv8-git"
+_pkgname="rv8"
+pkgver=8342590
+pkgrel=1
+pkgdesc="RISC-V simulator for x86-64"
+arch=('x86_64')
+url="https://rv8.io/"
+license=('MIT')
+depends=('riscv64-linux-gnu-gcc')
+makedepends=('git')
+provides=("rv8")
+conflicts=("rv8")
+source=("rv8::git+https://github.com/rv8-io/rv8.git")
+md5sums=("SKIP")
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git rev-parse --short HEAD
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+ git submodule update --init --recursive
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ export RISCV="/usr"
+ make DEST_DIR="/usr" enable_harden=1
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ mkdir "$pkgdir/usr/" "$pkgdir/usr/bin/" "$pkgdir/usr/lib/"
+ make DEST_DIR="$pkgdir/usr" install
+ install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}