diff options
author | Kali Kaneko <kali@leap.se> | 2018-02-27 01:52:59 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-03-02 03:54:14 +0100 |
commit | 031a2044a77153b6c2a3e111de17827c8395ea1e (patch) | |
tree | 3c013eb9d03366630aa04fe98cee78ae90ba79b0 /pkg/riseupvpn/snap/snapcraft.yaml | |
parent | c9fbec21b700c25d35a03b12df1adbb65f67ff12 (diff) |
[pkg] install helpers from snap
Diffstat (limited to 'pkg/riseupvpn/snap/snapcraft.yaml')
-rw-r--r-- | pkg/riseupvpn/snap/snapcraft.yaml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkg/riseupvpn/snap/snapcraft.yaml b/pkg/riseupvpn/snap/snapcraft.yaml index 024bdf3b..f358615b 100644 --- a/pkg/riseupvpn/snap/snapcraft.yaml +++ b/pkg/riseupvpn/snap/snapcraft.yaml @@ -8,8 +8,8 @@ description: | Just click on it. And don't forget to donate. grade: devel # must be 'stable' to release into candidate/stable channels -#confinement: devmode #classic # use 'strict' once you have the right plugs and slots confinement: classic +icon: snap/gui/riseupvpn.svg parts: @@ -17,7 +17,7 @@ parts: plugin: python python-version: python2 source-branch: snap - # XXX change to leap/master + # XXX change to leap/master when merged source: https://0xacab.org/kali/bitmask-dev.git requirements: pkg/requirements-vpn.pip stage-packages: @@ -31,11 +31,13 @@ parts: plugin: nil stage-packages: - openvpn + # TODO copy openvpn to /usr/local/sbin bitmask-systray: plugin: go source: https://0xacab.org/leap/bitmask-systray.git build-packages: - pkg-config + - patchelf - libzmq5 - libzmq3-dev - libsodium-dev @@ -45,16 +47,20 @@ parts: - libzmq5 - libsodium18 - libappindicator3-1 + install: | + TRIPLET_PATH="$SNAPCRAFT_PART_INSTALL/usr/lib/$(gcc -print-multiarch)" + LIBZMQ=$(readlink -n $TRIPLET_PATH/libzmq.so.5) + LIBSOD=$(readlink -n $TRIPLET_PATH/libsodium.so.18) + ln -s "../usr/lib/$(gcc -print-multiarch)/$LIBZMQ" $SNAPCRAFT_PART_INSTALL/bin/libzmq.so.5 + ln -s "../usr/lib/$(gcc -print-multiarch)/$LIBSOD" $SNAPCRAFT_PART_INSTALL/bin/libsodium.so.18 + patchelf --set-rpath /snap/riseup-vpn/current/bin/ $SNAPCRAFT_PART_INSTALL/bin/bitmask-systray.git desktop-gtk3: prime: ['*'] apps: bitmask-systray: command: ./bin/bitmask-systray.git - plugs: [x11, network] launcher: command: ./bin/bitmask_anonvpn - plugs: [x11, network] bitmaskd: command: ./bin/bitmaskd - plugs: [network] |