[arch-commits] Commit in openbve/trunk (PKGBUILD openbve.appdata.xml)

Balló György bgyorgy at archlinux.org
Sun Dec 30 01:36:20 UTC 2018


    Date: Sunday, December 30, 2018 @ 01:36:19
  Author: bgyorgy
Revision: 418955

upgpkg: openbve 1.5.3.11-2

Add AppStream metadata, add better icon

Added:
  openbve/trunk/openbve.appdata.xml
Modified:
  openbve/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   17 ++++++++++-------
 openbve.appdata.xml |   22 ++++++++++++++++++++++
 2 files changed, 32 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-30 01:19:16 UTC (rev 418954)
+++ PKGBUILD	2018-12-30 01:36:19 UTC (rev 418955)
@@ -3,18 +3,20 @@
 pkgname=openbve
 _pkgname=OpenBVE
 pkgver=1.5.3.11
-pkgrel=1
+pkgrel=2
 pkgdesc="Free-as-in-freedom train simulator placed in the public domain"
 arch=('any')
 url="http://openbve-project.net/"
 license=('MIT' 'custom:public domain')
-depends=('libxi' 'mono' 'openal')
+depends=('hicolor-icon-theme' 'libxi' 'mono' 'openal')
 source=($_pkgname-$pkgver.tar.gz::https://github.com/leezer3/$_pkgname/archive/$pkgver.tar.gz
         $pkgname.sh
-        $pkgname.desktop)
+        $pkgname.desktop
+        $pkgname.appdata.xml)
 sha256sums=('ea98f13071a8ee379a7c5206096d4e317ec063f2cb62f3e858eb3de3d8656133'
             'cf0f2a28e65248f742d6bb80f3101e36f24097e699c4e5acdf3fd4dbb965d3c3'
-            '8190945fa834ecdcf8a3f271264e5be2e288933ecde943060346e16537611c0f')
+            '8190945fa834ecdcf8a3f271264e5be2e288933ecde943060346e16537611c0f'
+            '1ae1d4bf4dbe0d4e012fafef090d98b4c67ba87bee8981af0b2de11015b57df2')
 
 build() {
   cd $_pkgname-$pkgver
@@ -37,9 +39,10 @@
   install -Dm755 ../$pkgname.sh "$pkgdir/usr/bin/$pkgname"
 
   # Desktop file and icon
-  install -Dm644 ../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
-  mkdir -p "$pkgdir/usr/share/pixmaps"
-  ln -s ../games/$pkgname/Data/Menu/logo.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
+  install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+  install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
+  install -Dm644 assets/Menu/logo.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/$pkgname.png"
+  install -Dm644 graphics/logo_icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
 
   # License
   install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"

Added: openbve.appdata.xml
===================================================================
--- openbve.appdata.xml	                        (rev 0)
+++ openbve.appdata.xml	2018-12-30 01:36:19 UTC (rev 418955)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+  <id>net.openbve-project.openbve</id>
+  <launchable type="desktop-id">openbve.desktop</launchable>
+  <name>OpenBVE</name>
+  <summary>Train/railway simulator compatible with 'BVE Trainsim' routes</summary>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>CC0-1.0</project_license>
+  <description>
+    <p>OpenBVE is a railway train-driving simulator with an emphasis on in-cab driving, realistic physics, braking system and train safety system modelling.</p>
+  </description>
+  <screenshots>
+    <screenshot type="default">
+      <image>https://openbve-project.net/images/driving_1.jpg</image>
+    </screenshot>
+    <screenshot>
+      <image>https://openbve-project.net/images/driving_2.jpg</image>
+    </screenshot>
+  </screenshots>
+  <url type="bugtracker">https://github.com/leezer3/OpenBVE/issues</url>
+  <url type="homepage">https://openbve-project.net/</url>
+</component>



More information about the arch-commits mailing list