From 200a30ab48cf417f03bac8db79968ff02649f946 Mon Sep 17 00:00:00 2001 From: shimun Date: Mon, 10 Sep 2018 15:46:41 +0200 Subject: [PATCH] start working on a sauerbraten flatpak --- org.sauerbraten.Cube2.json | 52 +++++++++++++++++++++++++++++ setup-repo.sh | 3 ++ share/applications/launcher.desktop | 7 ++++ 3 files changed, 62 insertions(+) create mode 100644 org.sauerbraten.Cube2.json create mode 100755 setup-repo.sh create mode 100644 share/applications/launcher.desktop diff --git a/org.sauerbraten.Cube2.json b/org.sauerbraten.Cube2.json new file mode 100644 index 0000000..712e6f1 --- /dev/null +++ b/org.sauerbraten.Cube2.json @@ -0,0 +1,52 @@ +{ + "app-id": "org.sauerbraten.Cube2", + "runtime": "org.kde.Platform", + "runtime-version": "5.9", + "sdk": "org.kde.Sdk", + "command": "sauerbraten", + "modules": [ + { + "name": "game", + "sources": [ + { + "type": "git", + "path": "src", + "commit": "17d79ca96f8ff9848c527979b90ec468f662f8c2" + } + ], + "buildsystem": "simple", + "build-commands": [ + "make -C src install" + ] + }, + { + "name": "share", + "sources": [ + { + "type": "file", + "url": "http://quadropolis.us/files/sauerbratenicons.png", + "sha256": "4fcd5c0d46f124e64cf92346f32cfc03fe6b239bca098e7909c84f1a58caa71e" + }, + { + "type": "dir", + "path": "share/applications" + } + ], + "buildsystem": "simple", + "build-commands":[ + "#mkdir -p files/share/applications", + "#install -D launcher.desktop sauerbratenicons.png files/share/applications/", + "#bash -c '(>&2 ls /app/ )'" + ] + } + ], + "rename-icon": "sauerbratenicons", + "rename-desktop-file": "launcher.desktop", + "finish-args": [ + "--socket=x11", + "--socket=wayland", + "--share=network", + "--socket=pulseaudio" + ] +} + diff --git a/setup-repo.sh b/setup-repo.sh new file mode 100755 index 0000000..e71863e --- /dev/null +++ b/setup-repo.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +git submodule update --init --recursive diff --git a/share/applications/launcher.desktop b/share/applications/launcher.desktop new file mode 100644 index 0000000..425b26d --- /dev/null +++ b/share/applications/launcher.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Sauerbraten +Exec=sauerbraten +Comment=Cube2 Sauerbraten +Icon=sauerbraten +Type=Application +Categories=Games;