[arch-commits] Commit in tinyemu/trunk (PKGBUILD launcher.sh)

Alexander Rødseth arodseth at archlinux.org
Mon Oct 15 20:21:51 UTC 2018


    Date: Monday, October 15, 2018 @ 20:21:51
  Author: arodseth
Revision: 394349

upgpkg: tinyemu 2018_09_23-2

Added:
  tinyemu/trunk/launcher.sh
Modified:
  tinyemu/trunk/PKGBUILD

-------------+
 PKGBUILD    |   56 ++++++++++++++++++++++++++++++++++++++++++++------------
 launcher.sh |    3 +++
 2 files changed, 47 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-15 20:18:52 UTC (rev 394348)
+++ PKGBUILD	2018-10-15 20:21:51 UTC (rev 394349)
@@ -1,30 +1,46 @@
 # Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
 
-pkgname=tinyemu
+pkgbase=tinyemu
+pkgname=(tinyemu jslinux)
 pkgver=2018_09_23
-pkgrel=1
+pkgrel=2
 pkgdesc='RISC-V system emulator'
 arch=('x86_64')
 url='https://bellard.org/tinyemu/'
 license=('MIT')
-depends=('sdl')
-makedepends=('setconf')
-source=("https://bellard.org/tinyemu/$pkgname-${pkgver//_/-}.tar.gz")
-sha256sums=('9b58d5521df8356c3be09a520387d3e4adcb510cf8d2fd6bdd971287bd57d734')
+makedepends=('gendesk' 'setconf' 'sdl')
+source=("https://bellard.org/tinyemu/$pkgname-${pkgver//_/-}.tar.gz"
+        'http://roboticoverlords.org/riscv.png'
+        'https://bellard.org/jslinux/buildroot-riscv64-xwin.cfg'
+        'https://bellard.org/jslinux/bbl64-4.15.bin'
+        'launcher.sh')
+sha256sums=('9b58d5521df8356c3be09a520387d3e4adcb510cf8d2fd6bdd971287bd57d734'
+            'bd844477cbd2fbada366b357dd7e27895fee944d55e9b461f1d66350cba419d8'
+            '7d26b9a028d2c5ab70c8c7422fb02dd34f1185c80185629ef526b5cffa0d5db5'
+            '81b7dc5671a457d4cdf85690efd5948b228a3f7e7788d0ade57b939f5f450ee1'
+            'f48f00a16613668b795d1c83333b948f75c4eda7e647ab7f509a306e4ac34e2a')
 
 prepare() {
-  cd "$pkgname-${pkgver//_/-}"
-
-  setconf Makefile bindir /usr/bin
+  gendesk -n -f \
+    --name=TinyEMU \
+    --pkgname="$pkgname" \
+    --pkgdesc="$pkgdesc" \
+    --exec=jslinux \
+    --categories=Emulator \
+    --comment='RISC-V Emulator'
+  setconf "$pkgbase-${pkgver//_/-}/Makefile" bindir /usr/bin
 }
 
 build() {
-  make -C "$pkgname-${pkgver//_/-}"
+  make -C "$pkgbase-${pkgver//_/-}"
 }
 
-package() {
-  cd "$pkgname-${pkgver//_/-}"
+package_tinyemu() {
+  depends=('curl' 'sdl')
+  optdepends=('jslinux: RISC-V Emulator')
+  group=('risc-v')
 
+  cd "$pkgbase-${pkgver//_/-}"
   install -d "$pkgdir/usr/bin"
   make DESTDIR="$pkgdir" install
   install -Dm644 MIT-LICENSE.txt \
@@ -31,4 +47,20 @@
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
+package_jslinux() {
+  depends=('tinyemu')
+  group=('risc-v')
+
+  install -Dm644 buildroot-riscv64-xwin.cfg \
+    "$pkgdir/usr/share/$pkgbase/buildroot-riscv64-xwin.cfg"
+  install -Dm644 bbl64-4.15.bin "$pkgdir/usr/share/$pkgbase/bbl64-4.15.bin"
+  install -Dm755 launcher.sh "$pkgdir/usr/bin/jslinux"
+  install -Dm644 tinyemu.desktop \
+    "$pkgdir/usr/share/applications/tinyemu.desktop"
+  install -Dm644 riscv.png \
+    "$pkgdir/usr/share/pixmaps/tinyemu.png"
+  install -Dm644 "$pkgbase-${pkgver//_/-}/MIT-LICENSE.txt" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
 # vim: ts=2 sw=2 et:

Added: launcher.sh
===================================================================
--- launcher.sh	                        (rev 0)
+++ launcher.sh	2018-10-15 20:21:51 UTC (rev 394349)
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/tinyemu
+temu -m 1024 'buildroot-riscv64-xwin.cfg'



More information about the arch-commits mailing list