-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.hopperapp.hopper.yaml
89 lines (88 loc) · 2.53 KB
/
com.hopperapp.hopper.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# TODO
# * python2 cleanup
#
# Known issues:
# * No access to help, /usr/share/doc hardcoded
# * Build fails if stripping is enabled for python2 module
# maybe the same as https://github.com/flatpak/flatpak-builder/issues/317
# * App is complaining about timezone on startup
app-id: com.hopperapp.hopper
runtime: org.kde.Platform
runtime-version: '5.15-21.08'
sdk: org.kde.Sdk
command: hopper
finish-args:
- --device=dri
- --filesystem=home
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --socket=x11
cleanup:
- /include
- /lib/pkgconfig
- /share/man
- '*.a'
- '*.la'
modules:
- ../shared-modules/libbsd/libbsd.json
# might need clang
# - name: libdispatch
# buildsystem: cmake
# config-opts:
# - -DCMAKE_BUILD_TYPE=RelWithDebInfo
# - -DBlocksRuntime_INCLUDE_DIR=/app/include
# - -DBlocksRuntime_LIBRARIES=/app/lib/libBlocksRuntime.so
# sources:
# - type: archive
# url: sfda
# sha256: fasdfds
# x-checker-data:
# type: anitya
# project-id: 148807
# stable-only: true
# url-template: https://github.com/apple/swift-corelibs-libdispatch/archive/swift-$version-RELEASE.tar.gz
- name: hopper
buildsystem: simple
build-commands:
- install -Dm755 apply_extra hopper -t /app/bin/
- install -Dm644 ${FLATPAK_ID}.desktop -t /app/share/applications/
- |
for s in 48 64 128 256 512; do
install -Dm644 ${s}.png /app/share/icons/hicolor/${s}x${s}/apps/${FLATPAK_ID}.png
done
sources:
- type: extra-data
filename: hopper.tar.xz
url: https://d2ap6ypl1xbe4k.cloudfront.net/Hopper-v4-4.9.1-Linux.pkg.tar.xz
sha256: 37706c9c96f16c0baaa8df6a2ff6b5479fe652c59e4f9de979536b6147fee60e
size: 18612684
- type: script
dest-filename: apply_extra
commands:
- bsdtar -xf hopper.tar.xz
--strip-components=2
opt/hopper-v4
- |
mkdir doc &&
bsdtar -xf hopper.tar.xz \
--strip-components=4 \
--directory=doc \
usr/share/doc/hopperv4
- rm -f hopper.tar.xz
- type: script
dest-filename: hopper
commands:
- exec /app/extra/bin/Hopper "$@"
- type: file
path: com.hopperapp.hopper.desktop
- type: file
path: icons/48.png
- type: file
path: icons/64.png
- type: file
path: icons/128.png
- type: file
path: icons/256.png
- type: file
path: icons/512.png