onionshare/snap/snapcraft.yaml
2020-05-05 15:12:13 -07:00

110 lines
3.3 KiB
YAML

name: onionshare
base: core18
version: '2.2'
summary: Securely and anonymously send and receive files, and publish onion sites
description: |
OnionShare is an open source tool for securely and anonymously sending and
receiving files and publishing websites using Tor onion services. It works by
starting a web server directly on your computer and making it accessible as
an unguessable Tor web address that others can load in Tor Browser. It
doesn't require setting up a separate server, using a third party service, or
even logging into an account.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
onionshare-gui:
common-id: org.onionshare.OnionShareGui
command: onionshare-gui
plugs:
- home
- opengl
- network
- network-bind
- pulseaudio
# onionshare:
# common-id: org.onionshare.OnionShare
# command: onionshare
# plugs:
# - home
# - network
# - network-bind
parts:
onionshare:
source: https://github.com/micahflee/onionshare.git
source-type: git
source-branch: 1111_snap
plugin: python
python-version: python3
python-packages:
- poetry
stage-packages:
- libatk-bridge2.0-0
- libatspi2.0-0
- libgtk-3-0
- python3-pyqt5
after: [qt5, tor, obfs4]
# For building Qt5, see:
# https://doc.qt.io/qt-5/linux-building.html
# https://doc.qt.io/qt-5/linux-requirements.html
qt5:
source: https://download.qt.io/archive/qt/5.14/5.14.0/single/qt-everywhere-src-5.14.0.tar.xz
source-checksum: sha256/be9a77cd4e1f9d70b58621d0753be19ea498e6b0da0398753e5038426f76a8ba
source-type: tar
plugin: autotools
build-packages:
- python
- libfontconfig1-dev
- libfreetype6-dev
- libx11-dev
- libxext-dev
- libxfixes-dev
- libxi-dev
- libxrender-dev
- libxcb1-dev
- libx11-xcb-dev
- libxcb-glx0-dev
- libxkbcommon-x11-dev
- libxcb-keysyms1-dev
- libxcb-image0-dev
- libxcb-shm0-dev
- libxcb-icccm4-dev
- libxcb-sync0-dev
- libxcb-xfixes0-dev
- libxcb-shape0-dev
- libxcb-randr0-dev
- libxcb-render-util0-dev
# Using override-build instead of configflags to avoid problem where
# there's the `--prefix=` flag without any way to set the value
override-build: |
./configure -opensource -confirm-license -no-opengl -nomake examples -nomake tests
make
make install DESTDIR="${SNAPCRAFT_PART_INSTALL}"
tor:
source: https://dist.torproject.org/tor-0.4.2.7.tar.gz
source-checksum: sha256/06a1d835ddf382f6bca40a62e8fb40b71b2f73d56f0d53523c8bd5caf9b3026d
source-type: tar
plugin: autotools
build-packages:
- libssl-dev
- zlib1g-dev
after: [libevent]
libevent:
source: https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz
source-checksum: sha256/a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d
source-type: tar
plugin: autotools
obfs4:
source: pass
plugin: go
go-importpath: gitlab.com/yawning/obfs4
source: https://gitlab.com/yawning/obfs4
source-type: git