|
| 1 | +name: bittorrent-tracker-editor |
| 2 | +version: '1.33.0' |
| 3 | +base: core18 |
| 4 | +summary: Software for add or remove tracker from torrent files. |
| 5 | +description: | |
| 6 | + Features: |
| 7 | + - Select one torrent file or a folder with torrent files. |
| 8 | + - Add one or more trackers at the same time. |
| 9 | + - Remove one or more trackers at the same time. |
| 10 | + - Remove all the trackers to create trackerless torrent. DHT torrent |
| 11 | + - Change public/private flag. Warning: This will change the torrent info HASH. |
| 12 | + - Preset add/remove tracker via add_trackers.txt and remove_trackers.txt files when present in the same folder as the executable file. |
| 13 | + - Optional start as console program. |
| 14 | + - Show torrent files content. |
| 15 | + - Download stable trackers from newTrackon. |
| 16 | +#icon: snap/gui/bittorrent-tracker-editor.png |
| 17 | +grade: stable |
| 18 | +confinement: strict |
| 19 | +#license: MIT |
| 20 | + |
| 21 | +architectures: |
| 22 | + - build-on: amd64 |
| 23 | + - build-on: i386 |
| 24 | + - build-on: arm64 |
| 25 | + - build-on: armhf |
| 26 | + |
| 27 | +apps: |
| 28 | + bittorrent-tracker-editor: |
| 29 | + command: desktop-launch $SNAP/app/trackereditor |
| 30 | + environment: |
| 31 | + # Fallback to XWayland if running in a Wayland session. |
| 32 | + DISABLE_WAYLAND: 1 |
| 33 | + plugs: |
| 34 | + - desktop |
| 35 | + - desktop-legacy |
| 36 | + - x11 |
| 37 | + - unity7 |
| 38 | + - home |
| 39 | + - network |
| 40 | + - wayland |
| 41 | + - removable-media |
| 42 | + |
| 43 | +build-packages: |
| 44 | + - lazarus |
| 45 | + |
| 46 | +parts: |
| 47 | + bittorrent-tracker-editor: |
| 48 | + source: https://github.com/GerryFerdinandus/bittorrent-tracker-editor.git |
| 49 | + plugin: nil |
| 50 | + override-build: | |
| 51 | + snapcraftctl build |
| 52 | + lazbuild --build-mode=Release source/project/tracker_editor/trackereditor.lpi |
| 53 | + mkdir $SNAPCRAFT_PART_INSTALL/app |
| 54 | + mv enduser/trackereditor $SNAPCRAFT_PART_INSTALL/app |
| 55 | + stage-packages: |
| 56 | + - libcanberra-gtk-module |
| 57 | + - libssl-dev |
| 58 | + - libgail-common |
| 59 | + - libatk-adaptor |
| 60 | + - overlay-scrollbar-gtk2 |
| 61 | + after: |
| 62 | + - desktop-gtk2 |
| 63 | + |
| 64 | + # This part installs the `desktop-launch` script which initialises desktop |
| 65 | + # features such as fonts, themes and the XDG environment. It also installs |
| 66 | + # the GTK2 runtime libraries. |
| 67 | + # |
| 68 | + # It is copied straight from the snapcraft desktop helpers project. Please |
| 69 | + # periodically check the source for updates and copy the changes. |
| 70 | + # https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml |
| 71 | + # |
| 72 | + desktop-gtk2: |
| 73 | + source: https://github.com/ubuntu/snapcraft-desktop-helpers.git |
| 74 | + source-subdir: gtk |
| 75 | + plugin: make |
| 76 | + make-parameters: ["FLAVOR=gtk2"] |
| 77 | + build-packages: |
| 78 | + - libgtk2.0-dev |
| 79 | + stage-packages: |
| 80 | + - libxkbcommon0 # XKB_CONFIG_ROOT |
| 81 | + - ttf-ubuntu-font-family |
| 82 | + - dmz-cursor-theme |
| 83 | + - light-themes |
| 84 | + - adwaita-icon-theme |
| 85 | + - gnome-themes-standard |
| 86 | + - shared-mime-info |
| 87 | + - libgtk2.0-0 |
| 88 | + - libgdk-pixbuf2.0-0 |
| 89 | + - libglib2.0-bin |
| 90 | + - libgtk2.0-bin |
| 91 | + - unity-gtk2-module |
| 92 | + - libappindicator1 |
| 93 | + - locales-all |
| 94 | + - ibus-gtk |
| 95 | + - libibus-1.0-5 |
| 96 | + |
| 97 | +plugs: |
| 98 | + gtk-2-engines: |
| 99 | + interface: content |
| 100 | + target: $SNAP/lib/gtk-2.0 |
| 101 | + default-provider: gtk2-common-themes |
| 102 | + gtk-2-themes: |
| 103 | + interface: content |
| 104 | + target: $SNAP/data-dir/themes |
| 105 | + default-provider: gtk-common-themes |
| 106 | + icon-themes: |
| 107 | + interface: content |
| 108 | + target: $SNAP/data-dir/icons |
| 109 | + default-provider: gtk-common-themes |
| 110 | + sound-themes: |
| 111 | + interface: content |
| 112 | + target: $SNAP/data-dir/sounds |
| 113 | + default-provider: gtk-common-themes |
0 commit comments