flatpak/gtk3theme/flat-remix-gtk/base.yaml.in

33 lines
2.0 KiB
YAML

id: "org.gtk.Gtk3theme.{THEME}"
branch: "3.22"
runtime: org.freedesktop.Platform
build-extension: true
sdk: org.freedesktop.Sdk
runtime-version: "19.08"
appstream-compose: false
separate-locales: false
modules:
- name: base
sources:
- type: git
url: https://github.com/daniruiz/flat-remix-gtk.git
commit: 811159c82498d0e77e4351b4177df9bf4b05958e
- type: script
dest-filename: gen.sh
commands:
- make install PREFIX="/tmp"
- cp -rav "/tmp/share/themes/$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1)/gtk-3.0/." "$FLATPAK_DEST"
buildsystem: simple
build-commands:
- ./gen.sh
- name: appstream
buildsystem: simple
build-commands:
- mkdir -p $FLATPAK_DEST/share/appdata
- echo '<?xml version="1.0" encoding="UTF-8"?>' > "$FLATPAK_DEST/share/appdata/org.gtk.Gtk3theme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1).appdata.xml"
- echo '<component type="runtime">' >> "$FLATPAK_DEST/share/appdata/org.gtk.Gtk3theme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1).appdata.xml"
- echo ' <id>org.gtk.Gtk3theme.{THEME}</id>' >> "$FLATPAK_DEST/share/appdata/org.gtk.Gtk3theme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1).appdata.xml"
- echo ' <metadata_license>CC0-1.0</metadata_license>' >> "$FLATPAK_DEST/share/appdata/org.gtk.Gtk3theme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1).appdata.xml"
- echo '</component>' >> "$FLATPAK_DEST/share/appdata/org.gtk.Gtk3theme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1).appdata.xml"
- appstream-compose --basename="org.gtk.Gtk3theme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1)" --prefix=$FLATPAK_DEST --origin=builds "org.gtk.Gtk3theme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 2 | head -n 1)"