Skip to content

Commit

Permalink
Add basic snap package files, transmission-remote-gui#1109
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored and qu1ck committed Jul 28, 2020
1 parent c3a9bbb commit c5515ec
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

# snap package build via snapcraft
/*.snap
/snap/.snapcraft/
/stage/
/parts/
/prime/

### https://raw.github.com/github/gitignore/8edb8a95c4c4b3dce71a378aaaf89275510b9cef/Global/Lazarus.gitignore

# Lazarus compiler-generated binaries (safe to delete)
Expand Down
14 changes: 14 additions & 0 deletions snap/local/transgui.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Desktop Entry]
Version=1.0
Name=TransGUI
GenericName=Transmission Remote GUI
Comment=Transmission Remote GUI
Exec=@bindir@/transgui
TryExec=@bindir@/transgui
Icon=transgui
Terminal=false
Type=Application
Categories=Internet;
MimeType=application/x-bittorrent
X-KDE-Protocols=magnet
Keywords=Torrent;Transmission;
60 changes: 60 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
name: transgui
version: version
summary: Transmission Remote GUI
version-script: cat VERSION.txt
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 builtin Transmission
web interface.
icon: transgui.png
grade: stable
confinement: strict

parts:
transgui:
plugin: dump
source: .
prime:
- etc
- usr
- var
- lib
- lang
- LICENSE
- transgui
- transgui.desktop
- README.md
- history.txt
- transgui.png
override-build: |
snapcraftctl build
sed -i 's|Icon=transgui|Icon=${SNAP}/transgui.png|' ${SNAPCRAFT_PART_INSTALL}/transgui.desktop
build-packages:
- git
- make
- lazarus
- coreutils
stage-packages:
- libx11-6
- libcairo2
- libssl-dev
- libatk1.0-0
- libgtk2.0-0
- libglib2.0-0
- libpango-1.0-0
- libgdk-pixbuf2.0-0

apps:
transgui:
desktop: transgui.desktop
plugs:
- desktop
- desktop-legacy
- wayland
- x11
- unity7
- network
- home
command: transgui

0 comments on commit c5515ec

Please sign in to comment.