Skip to content

Commit

Permalink
Update Snapcraft.yaml for core20
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhaydock authored and PeterDaveHello committed May 21, 2023
1 parent 3198f8f commit a672c1b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion snap/gui/transgui.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Version=1.0
Name=Transmission Remote GUI
Comment=A feature rich cross platform Transmission BitTorrent client.
Exec=transgui
Exec=transgui "%U"
Icon=${SNAP}/meta/gui/transgui.png
Terminal=false
Type=Application
Expand Down
59 changes: 29 additions & 30 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,60 @@ license: GPL-2.0
description: Transmission Remote GUI is feature rich cross platform front-end to remotely control Transmission daemon via its RPC protocol. It is faster and has more functionality than the built-in Transmission web interface.
icon: snap/gui/transgui.png
confinement: strict
base: core18
base: core20

architectures:
- build-on: amd64
- build-on: i386
- build-on: arm64
- build-on: armhf

apps:
transgui:
command: transgui
command-chain:
- bin/desktop-launch
command: bin/desktop-launch $SNAP/usr/bin/transgui
environment:
# Fallback to XWayland if running in a Wayland session.
# Fallback to XWayland if running in a Wayland session
DISABLE_WAYLAND: 1
GTK_PATH: $SNAP/lib/gtk-2.0
plugs:
- home
- removable-media
- desktop
- desktop-legacy
- gsettings
- home
- network
- removable-media
- unity7
- wayland
- x11
- gsettings
- network

parts:
# This part brings in the transgui package from the Ubuntu Archive. In future
# I will probably try to build this manually, but the Ubuntu package is quite
# useful for now until the Upstream is patched to work with newer distros or
# updated to use GTK3.
#
# See: https://github.com/transmission-remote-gui/transgui/issues/1310#issuecomment-668643815
#
transgui:
plugin: dump
source:
- on amd64: https://github.com/transmission-remote-gui/transgui/releases/download/v$SNAPCRAFT_PROJECT_VERSION/transgui-$SNAPCRAFT_PROJECT_VERSION-x86_64-Linux.txz
- on i386: https://github.com/transmission-remote-gui/transgui/releases/download/v$SNAPCRAFT_PROJECT_VERSION/transgui-$SNAPCRAFT_PROJECT_VERSION-i686-Linux.txz
- on armhf: https://github.com/transmission-remote-gui/transgui/releases/download/v$SNAPCRAFT_PROJECT_VERSION/transgui-$SNAPCRAFT_PROJECT_VERSION-armv7l-Linux.txz
source-type: tar
plugin: nil
stage-packages:
- libx11-6
- libcairo2
- libssl-dev
- libatk1.0-0
- libgtk2.0-0
- libglib2.0-0
- libpango-1.0-0
- libgdk-pixbuf2.0-0
- transgui
after:
- desktop-gtk2
- gtk2

desktop-gtk2:
# This part installs the `desktop-launch` script which initialises desktop
# features such as fonts, themes and the XDG environment. It also installs
# the GTK2 runtime libraries.
#
# It is copied straight from the snapcraft desktop helpers project. Please
# periodically check the source for updates and copy the changes.
# https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml
#
gtk2:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: gtk
plugin: make
make-parameters: ["FLAVOR=gtk2"]
build-packages:
- build-essential
- libgtk2.0-dev
stage-packages:
- libxkbcommon0 # XKB_CONFIG_ROOT
Expand All @@ -74,9 +74,8 @@ parts:
- libglib2.0-bin
- libgtk2.0-bin
- unity-gtk2-module
- locales-all
- libappindicator1
- xdg-user-dirs
- locales-all
- ibus-gtk
- libibus-1.0-5

Expand All @@ -96,4 +95,4 @@ plugs:
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes
default-provider: gtk-common-themes

0 comments on commit a672c1b

Please sign in to comment.