-
Notifications
You must be signed in to change notification settings - Fork 1
/
com.nordpass.NordPass.yaml
70 lines (68 loc) · 2.37 KB
/
com.nordpass.NordPass.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
app-id: com.nordpass.NordPass
base: org.electronjs.Electron2.BaseApp
base-version: '20.08'
runtime: org.freedesktop.Platform
runtime-version: '20.08'
sdk: org.freedesktop.Sdk
command: nordpass
tags:
- proprietary
finish-args:
- --socket=x11
- --device=dri
- --share=ipc
- --socket=pulseaudio
- --share=network
- --talk-name=org.freedesktop.secrets
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
modules:
- name: squashfs
buildsystem: simple
build-commands:
- make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=${FLATPAK_DEST}/bin
sources:
- type: archive
url: https://github.com/plougher/squashfs-tools/archive/4.4.tar.gz
sha256: a7fa4845e9908523c38d4acf92f8a41fdfcd19def41bd5090d7ad767a6dc75c3
- type: patch
path: xz_support.patch
- type: patch
path: gcc10.diff
- shared-modules/libsecret/libsecret.json
- name: nordpass
buildsystem: simple
build-commands:
- install -D apply_extra "${FLATPAK_DEST}/bin/apply_extra"
- install nordpass "${FLATPAK_DEST}/bin/"
post-install:
- install -p -Dm644 "icon.png" "${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png"
- install -Dm644 nordpass.desktop "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- install -Dm644 com.nordpass.NordPass.metainfo.xml "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
sources:
- type: extra-data
filename: nordpass.snap
url: https://api.snapcraft.io/api/v1/snaps/download/00CQ2MvSr0Ex7zwdGhCYTa0ZLMw3H6hf_100.snap
sha256: 237af9b70eb70b0ac94120d7cd778a997b7e5a080c2d923ded854c57d8194d47
size: 72409088
x-checker-data:
type: snapcraft
name: nordpass
channel: stable
- type: script
dest-filename: apply_extra
commands:
- unsquashfs nordpass.snap
- rm nordpass.snap
- mv squashfs-root nordpass
- touch nordpass/chrome-sandbox && chmod +x nordpass/chrome-sandbox
- type: script
dest-filename: nordpass
commands:
- TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/extra/nordpass/nordpass "$@"
- type: file
path: com.nordpass.NordPass.metainfo.xml
- type: file
path: nordpass.desktop
- type: file
path: icon.png