Skip to content

Instantly share code, notes, and snippets.

@xoriole
Created January 14, 2020 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xoriole/0f82507ef9a562ad9c316c33920ae33e to your computer and use it in GitHub Desktop.
Save xoriole/0f82507ef9a562ad9c316c33920ae33e to your computer and use it in GitHub Desktop.
Tribler snapcraft.yaml [7.5.0+]
name: tribler-bittorrent
version: 7.4.0
summary: Tribler
description: >
Peer-to-peer Bittorrent client with enhanced privacy. Search and download torrents with less worries or censorship.
grade: devel
confinement: devmode
base: core18
architectures:
- build-on: amd64
parts:
desktop-qt5:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
plugin: make
make-parameters: ["FLAVOR=qt5"]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
stage-packages:
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5 # for loading icon themes which are svg
- try: [appmenu-qt5] # not available on core18
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
tribler:
after:
- desktop-qt5
plugin: dump
source: .
override-build: |
snapcraftctl build
cp -r tribler/usr/bin/tribler $SNAPCRAFT_PART_INSTALL/usr/bin/tribler
cp -r tribler/usr/share/applications $SNAPCRAFT_PART_INSTALL/usr/share
cp -r tribler/usr/share/pixmaps $SNAPCRAFT_PART_INSTALL/usr/share
cp -r tribler/usr/share/tribler $SNAPCRAFT_PART_INSTALL/usr/share/
chmod +x $SNAPCRAFT_PART_INSTALL/usr/share/tribler/tribler
stage-packages:
- libgpm2
- libglu1-mesa
- libslang2
- libatlas-base-dev
- libblas3
- libblas-dev
- libxcomposite1
- libxcursor1
- libxinerama1
- libatk1.0-0
- libgtk2.0-0
- liblapack3
- libx11-xcb1
- libxcb-xkb1
- libxcb-icccm4
- libxcb-image0
- libxcb-render-util0
- vlc
- libappindicator3-1
- libasound2
- libcurl3-gnutls
- libgconf-2-4
- libgtk-3-0
- libnotify4
- libnspr4
- libnss3
- libpcre3
- libpulse0
- libxss1
- libxtst6
- libsodium18
apps:
tribler-bittorrent:
command: desktop-launch ${SNAP}/usr/share/tribler/tribler
plugs:
- desktop
- desktop-legacy
- home
- network
- network-bind
- unity7
- pulseaudio
- network-manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment