-
Notifications
You must be signed in to change notification settings - Fork 7
/
one.ablaze.floorp.yml
179 lines (176 loc) · 5.92 KB
/
one.ablaze.floorp.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
app-id: one.ablaze.floorp
name: Floorp
runtime: org.freedesktop.Platform
runtime-version: 24.08
sdk: org.freedesktop.Sdk
add-extensions:
org.freedesktop.Platform.ffmpeg-full:
directory: lib/ffmpeg
version: 24.08
add-ld-path: .
command: floorp
finish-args:
- --share=ipc
- --share=network
- --socket=pulseaudio
- --socket=wayland
- --socket=fallback-x11
- --socket=pcsc
- --socket=cups
- --persist=.floorp
- --env=DICPATH=/usr/share/hunspell
- --filesystem=home/.local/share/applications:create
- --filesystem=home/.local/share/icons:create
- --filesystem=xdg-desktop
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --filesystem=xdg-music
- --filesystem=xdg-pictures
- --filesystem=xdg-videos
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --filesystem=xdg-run/speech-dispatcher:ro
- --device=all
- --talk-name=org.freedesktop.FileManager1
- --system-talk-name=org.freedesktop.NetworkManager
- --talk-name=org.a11y.Bus
- --talk-name=org.gtk.vfs.*
- --own-name=org.mpris.MediaPlayer2.firefox.*
- --own-name=org.mozilla.floorp.*
cleanup:
- /include
- /lib/pkgconfig
- /share/pkgconfig
- /share/aclocal
- /share/gtk-doc
- /share/doc
- /share/info
- /man
- /share/man
- '*.la'
- '*.a'
modules:
- shared-modules/dbus-glib/dbus-glib.json
- shared-modules/libcanberra/libcanberra.json
- shared-modules/intltool/intltool-0.51.json
- name: kerberos
subdir: src
config-opts:
- --localstatedir=/var/lib
- --sbindir=${FLATPAK_DEST}/bin
- --disable-rpath
- --disable-static
post-install:
- install -Dm644 ../krb5.conf -t ${FLATPAK_DEST}/etc/
sources:
- type: archive
url: https://kerberos.org/dist/krb5/1.21/krb5-1.21.tar.gz
sha256: 69f8aaff85484832df67a4bbacd99b9259bd95aab8c651fbbe65cdc9620ea93b
- type: file
path: krb5.conf
cleanup:
- /bin
- /share/et
- /share/examples
- name: sound-theme-freedesktop
sources:
- type: git
url: https://salsa.debian.org/gnome-team/sound-theme-freedesktop.git
tag: upstream/0.8
- name: pcsc-lite
config-opts:
- --disable-libudev
- --disable-libsystemd
- --without-systemdsystemunitdir
- --disable-serial
- --disable-usb
- --disable-documentation
- --disable-polkit
post-install:
- rm /app/sbin/pcscd
- rmdir /app/sbin || true
sources:
- type: archive
url: https://salsa.debian.org/rousseau/PCSC/-/archive/2.0.3/PCSC-2.0.3.tar.bz2
sha256: 35ce63ff9f8fa34b67fbc791be08b3daba621263545e3d0fe1e480301f10a41d
- name: dotconf
cleanup:
- '*'
sources:
- type: archive
url: https://github.com/williamh/dotconf/archive/refs/tags/v1.3.tar.gz
sha256: 7f1ecf40de1ad002a065a321582ed34f8c14242309c3547ad59710ae3c805653
- type: script
commands:
- autoreconf -fiv
dest-filename: autogen.sh
- name: libspeechd
config-opts:
- --disable-python
- --with-systemdsystemunitdir=''
- --disable-rpath
- --disable-static
- --with-kali=no
- --with-baratinoo=no
- --with-ibmtts=no
- --with-voxin=no
- --without-oss
sources:
- type: archive
url: https://github.com/brailcom/speechd/releases/download/0.11.5/speech-dispatcher-0.11.5.tar.gz
sha256: 1ce4759ffabbaf1aeb433a5ec0739be0676e9bdfbae9444a7b3be1b2af3ec12b
cleanup:
- /bin
- /etc
- /libexec
- /lib/speech-dispatcher
- /share/sounds/speech-dispatcher
- /share/speech-dispatcher
- name: floorp
buildsystem: simple
build-commands:
- install -Dm644 one.ablaze.floorp.appdata.xml -t /app/share/metainfo/
- mkdir -p /app/lib/ffmpeg
- mv floorp-*.tar.bz2 floorp.tar.bz2
- tar -xvf ./floorp.tar.bz2 -C /app/lib
- cp -r ./src/* /app/
- chmod +x /app/bin/floorp
- >
for size in 16 32 48 64 128; do
mkdir -p "/app/share/icons/hicolor/${size}x${size}/apps"
cp "/app/lib/floorp/browser/chrome/icons/default/default${size}.png" "/app/share/icons/hicolor/${size}x${size}/apps/one.ablaze.floorp.png"
done
- >
export DISTRIBUTION_VERSION=$(cat one.ablaze.floorp.appdata.xml | sed -r 's/\s*?<release\sversion="([0-9\.]*?)"\sdate="([0-9\-]*?)".*?>.*?<\/release>\s*?/\1_\2/gp;d'
| head -1)
echo $DISTRIBUTION_VERSION | grep -E "^[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?_[0-9]{4}-[0-9]{2}-[0-9]{2}$"
# validation
echo "pref(\"distribution.version\", \"$DISTRIBUTION_VERSION\");" >> /app/lib/floorp/defaults/pref/flatpak-prefs.js
sources:
- type: file
only-arches:
- x86_64
url: https://github.com/Floorp-Projects/Floorp/releases/download/v11.20.0/floorp-11.20.0.linux-x86_64.tar.bz2
sha256: 59e3a67de994bfc8da3038cfb355b249ea67bf13bda8aaff021c459aabffb767
x-checker-data:
is-main-source: true
type: json
url: https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: '"https://github.com/Floorp-Projects/Floorp/releases/download/v"
+ $version + "/floorp-" + $version + ".linux-x86_64.tar.bz2"'
- type: file
only-arches:
- aarch64
url: https://github.com/Floorp-Projects/Floorp/releases/download/v11.20.0/floorp-11.20.0.linux-aarch64.tar.bz2
sha256: cd416460b0b5a8b06ee2c4699110197c8180143e76bce4c119719edfc19c0d00
x-checker-data:
type: json
url: https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: '"https://github.com/Floorp-Projects/Floorp/releases/download/v"
+ $version + "/floorp-" + $version + ".linux-aarch64.tar.bz2"'
- type: file
path: one.ablaze.floorp.appdata.xml
- type: dir
path: src
dest: src