summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD23
-rwxr-xr-xrars.sh5
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9022ce6e398
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = rars
+ pkgdesc = RISC-V Assembler and Runtime Simulator
+ pkgver = 1.2
+ pkgrel = 1
+ url = https://github.com/TheThirdOne/rars
+ arch = any
+ license = MIT
+ depends = java-runtime
+ noextract = rars.jar
+ source = https://github.com/TheThirdOne/rars/releases/download/v1.2/rars.jar
+ source = https://raw.githubusercontent.com/TheThirdOne/rars/v1.2/License.txt
+ source = rars.sh
+ sha256sums = 62b75c0561e093b1e4268ea121a820870b4cf7dc1c3f24243bd08286ec1e0985
+ sha256sums = ee3e447d4d5b1f3ed6bc8a71939d06637338fb247777b3e3b60b6202d0712652
+ sha256sums = ab5b088335e5f189eaffa3399e764d85ad5069bb266a68a5640d2732504c5b56
+
+pkgname = rars
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..69bd8e49ad4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Abdelhakim Qbaich <abdelhakim@qbaich.com>
+
+pkgname=rars
+pkgver=1.2
+pkgrel=1
+pkgdesc="RISC-V Assembler and Runtime Simulator"
+arch=('any')
+url="https://github.com/TheThirdOne/$pkgname"
+license=('MIT')
+depends=('java-runtime')
+source=("https://github.com/TheThirdOne/$pkgname/releases/download/v$pkgver/$pkgname.jar"
+ "https://raw.githubusercontent.com/TheThirdOne/$pkgname/v$pkgver/License.txt"
+ "$pkgname.sh")
+noextract=("$pkgname.jar")
+sha256sums=('62b75c0561e093b1e4268ea121a820870b4cf7dc1c3f24243bd08286ec1e0985'
+ 'ee3e447d4d5b1f3ed6bc8a71939d06637338fb247777b3e3b60b6202d0712652'
+ 'ab5b088335e5f189eaffa3399e764d85ad5069bb266a68a5640d2732504c5b56')
+
+package() {
+ install -Dm644 "$pkgname.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
+ install -Dm644 License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+}
diff --git a/rars.sh b/rars.sh
new file mode 100755
index 00000000000..d144bd44958
--- /dev/null
+++ b/rars.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec /usr/bin/java \
+ -Dawt.useSystemAAFontSettings=on \
+ -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel \
+ -jar /usr/share/java/rars/rars.jar "$@"