Commit 2de30595 authored by Jeremy Bicha's avatar Jeremy Bicha

snap: Add initial Snap packaging

parent 51dabc60
name: five-or-more
version: git
summary: Remove colored balls from the board by forming lines
description: |
Five or More is the GNOME port of a once-popular computer game. Align five or
more objects of the same color into a line to cause them to disappear and
score points. Earn many more points by lining up as many objects as possible
before clearing them.
More objects appear after every turn. Play for as long as possible, until the
board is completely full!
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core18
# Launchpad doesn't recognize these fields yet
passthrough:
license: GPL-2.0+
title: Five or More
plugs:
gnome-3-28-1804:
interface: content
target: $SNAP/gnome-platform
default-provider: gnome-3-28-1804
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
slots:
# for GtkApplication registration
five-or-more:
interface: dbus
bus: session
name: org.gnome.five-or-more
apps:
five-or-more:
command: desktop-launch five-or-more
plugs:
- desktop
- desktop-legacy
- gsettings
- unity7
- wayland
desktop: usr/share/applications/five-or-more.desktop
environment:
GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas
parts:
desktop-gnome-platform:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: gtk
plugin: make
make-parameters: ["FLAVOR=gtk3"]
build-packages:
- build-essential
- libgtk-3-dev
override-build: |
snapcraftctl build
mkdir -pv $SNAPCRAFT_PART_INSTALL/gnome-platform
five-or-more:
after: [desktop-gnome-platform]
source: .
source-type: git
override-build: |
sed -i.bak -e 's|Icon=org.gnome.five-or-more$|Icon=${SNAP}/meta/gui/org.gnome.five-or-more.png|g' data/org.gnome.five-or-more.desktop.in
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
cp ../src/data/icons/hicolor/256x256/org.gnome.five-or-more.png $SNAPCRAFT_PART_INSTALL/meta/gui/
cp ../install/snap/five-or-more/current/usr/share/applications/org.gnome.five-or-more.desktop $SNAPCRAFT_PART_INSTALL/meta/gui/
plugin: meson
meson-parameters: [--prefix=/snap/five-or-more/current/usr]
organize:
snap/five-or-more/current/usr: usr
build-packages:
- gettext
- itstool
- libglib2.0-dev
- libgnome-games-support-1-dev
- libgtk-3-dev
- librsvg2-dev
stage-packages:
- libgnome-games-support-1-3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment