Created
July 4, 2018 08:27
-
-
Save jhenstridge/7f8c6d43bf21a42579e18d339be7a4fb to your computer and use it in GitHub Desktop.
Using the gtk-common-themes snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gtk3-demo | |
version: '0.1' | |
summary: A demonstration application for features of GTK | |
description: | | |
This snap contains the gtk3-demo application, using theme data | |
provided by one or more external snaps. | |
grade: devel # must be 'stable' to release into candidate/stable channels | |
confinement: strict | |
plugs: | |
gnome-3-26-1604: | |
interface: content | |
target: $SNAP/gnome-platform | |
default-provider: gnome-3-26-1604:gnome-3-26-1604 | |
gtk-3-themes: | |
interface: content | |
target: $SNAP/share/themes | |
default-provider: gtk-common-themes:gtk-3-themes | |
icon-themes: | |
interface: content | |
target: $SNAP/share/icons | |
default-provider: gtk-common-themes:icon-themes | |
sound-themes: | |
interface: content | |
target: $SNAP/share/sounds | |
default-provider: gtk-common-themes:sounds-themes | |
environment: | |
XDG_DATA_DIRS: $SNAP/share:$XDG_DATA_DIRS | |
apps: | |
gtk3-demo: | |
command: bin/desktop-launch $SNAP/usr/bin/gtk3-demo | |
plugs: | |
- desktop | |
- desktop-legacy | |
- gsettings | |
- wayland | |
- x11 | |
parts: | |
app: | |
after: | |
- desktop-gnome-platform | |
plugin: nil | |
build-attributes: | |
- no-system-libraries | |
stage-packages: | |
- gtk-3-examples | |
override-build: | | |
set -ex | |
snapcraftctl build | |
mkdir -p $SNAPCRAFT_PART_INSTALL/share/themes | |
mkdir -p $SNAPCRAFT_PART_INSTALL/share/icons | |
mkdir -p $SNAPCRAFT_PART_INSTALL/share/sounds | |
stage: | |
- usr/bin/gtk3-demo | |
- share/icons | |
- share/themes | |
- share/sounds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment