diff --git a/icontheme/flat-remix/.gitignore b/icontheme/flat-remix/.gitignore new file mode 100644 index 0000000..a2e7bec --- /dev/null +++ b/icontheme/flat-remix/.gitignore @@ -0,0 +1 @@ +/scripts diff --git a/icontheme/flat-remix/base.yaml.in b/icontheme/flat-remix/base.yaml.in new file mode 100644 index 0000000..2548c16 --- /dev/null +++ b/icontheme/flat-remix/base.yaml.in @@ -0,0 +1,32 @@ +id: "org.freedesktop.Platform.Icontheme.{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.git + commit: 957441cb74b805e019cad24ae0c3507187e60445 + - type: script + dest-filename: gen.sh + commands: + - make install PREFIX="/tmp" + - cp -rav "/tmp/share/icons/$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1)/." "$FLATPAK_DEST" + buildsystem: simple + build-commands: + - ./gen.sh + - name: appstream + buildsystem: simple + build-commands: + - mkdir -p $FLATPAK_DEST/share/appdata + - echo '' > "$FLATPAK_DEST/share/appdata/org.freedesktop.Platform.Icontheme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1).appdata.xml" + - echo '' >> "$FLATPAK_DEST/share/appdata/org.freedesktop.Platform.Icontheme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1).appdata.xml" + - echo ' org.freedesktop.Platform.Icontheme.{THEME}' >> "$FLATPAK_DEST/share/appdata/org.freedesktop.Platform.Icontheme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1).appdata.xml" + - echo ' CC0-1.0' >> "$FLATPAK_DEST/share/appdata/org.freedesktop.Platform.Icontheme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1).appdata.xml" + - echo '' >> "$FLATPAK_DEST/share/appdata/org.freedesktop.Platform.Icontheme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1).appdata.xml" + - appstream-compose --basename="org.freedesktop.Platform.Icontheme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1)" --prefix=$FLATPAK_DEST --origin=builds "org.freedesktop.Platform.Icontheme.$(echo "$FLATPAK_DEST" | tr / "\n" | tail -n 1)" diff --git a/icontheme/flat-remix/build.sh b/icontheme/flat-remix/build.sh new file mode 100755 index 0000000..47eafe5 --- /dev/null +++ b/icontheme/flat-remix/build.sh @@ -0,0 +1,15 @@ +#! /usr/bin/env bash +# Args: [] + +export "BASE_PATH=$(dirname "$0")" && +mkdir -p "$BASE_PATH/scripts" && +cat "$BASE_PATH/themes.csv" | while read i +do + cat "$BASE_PATH/base.yaml.in" | sed "s/{THEME}/$i/" > "$BASE_PATH/scripts/$i.yaml" && + if [ -z "$2" ] + then + flatpak-builder --force-clean $1 build "$BASE_PATH/scripts/$i.yaml" || exit 1 + else + flatpak-builder --force-clean --repo "$2" $1 build "$BASE_PATH/scripts/$i.yaml" || exit 1 + fi +done diff --git a/icontheme/flat-remix/themes.csv b/icontheme/flat-remix/themes.csv new file mode 100644 index 0000000..e0203aa --- /dev/null +++ b/icontheme/flat-remix/themes.csv @@ -0,0 +1,12 @@ +Flat-Remix-Blue-Dark +Flat-Remix-Blue-Light +Flat-Remix-Blue +Flat-Remix-Green-Dark +Flat-Remix-Green-Light +Flat-Remix-Green +Flat-Remix-Red-Dark +Flat-Remix-Red-Light +Flat-Remix-Red +Flat-Remix-Yellow-Dark +Flat-Remix-Yellow-Light +Flat-Remix-Yellow