[arch-commits] Commit in tinyemu/repos/community-x86_64 (3 files)

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


    Date: Monday, October 15, 2018 @ 20:22:00
  Author: arodseth
Revision: 394350

archrelease: copy trunk to community-x86_64

Added:
  tinyemu/repos/community-x86_64/PKGBUILD
    (from rev 394349, tinyemu/trunk/PKGBUILD)
  tinyemu/repos/community-x86_64/launcher.sh
    (from rev 394349, tinyemu/trunk/launcher.sh)
Deleted:
  tinyemu/repos/community-x86_64/PKGBUILD

-------------+
 PKGBUILD    |  100 ++++++++++++++++++++++++++++++++++++++--------------------
 launcher.sh |    3 +
 2 files changed, 69 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-15 20:21:51 UTC (rev 394349)
+++ PKGBUILD	2018-10-15 20:22:00 UTC (rev 394350)
@@ -1,34 +0,0 @@
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
-
-pkgname=tinyemu
-pkgver=2018_09_23
-pkgrel=1
-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')
-
-prepare() {
-  cd "$pkgname-${pkgver//_/-}"
-
-  setconf Makefile bindir /usr/bin
-}
-
-build() {
-  make -C "$pkgname-${pkgver//_/-}"
-}
-
-package() {
-  cd "$pkgname-${pkgver//_/-}"
-
-  install -d "$pkgdir/usr/bin"
-  make DESTDIR="$pkgdir" install
-  install -Dm644 MIT-LICENSE.txt \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim: ts=2 sw=2 et:

Copied: tinyemu/repos/community-x86_64/PKGBUILD (from rev 394349, tinyemu/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-10-15 20:22:00 UTC (rev 394350)
@@ -0,0 +1,66 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+
+pkgbase=tinyemu
+pkgname=(tinyemu jslinux)
+pkgver=2018_09_23
+pkgrel=2
+pkgdesc='RISC-V system emulator'
+arch=('x86_64')
+url='https://bellard.org/tinyemu/'
+license=('MIT')
+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() {
+  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 "$pkgbase-${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 \
+    "$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:

Copied: tinyemu/repos/community-x86_64/launcher.sh (from rev 394349, tinyemu/trunk/launcher.sh)
===================================================================
--- launcher.sh	                        (rev 0)
+++ launcher.sh	2018-10-15 20:22:00 UTC (rev 394350)
@@ -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