diff --git a/.gitignore b/.gitignore index 342b3820..f3e765d4 100644 --- a/.gitignore +++ b/.gitignore @@ -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) diff --git a/snap/local/transgui.desktop b/snap/local/transgui.desktop new file mode 100644 index 00000000..57d4115d --- /dev/null +++ b/snap/local/transgui.desktop @@ -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; diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..fe69c1da --- /dev/null +++ b/snap/snapcraft.yaml @@ -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