-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcom.github.Flacon.yaml
217 lines (195 loc) · 6.69 KB
/
com.github.Flacon.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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
app-id: com.github.Flacon
runtime: org.kde.Platform
runtime-version: 5.15-23.08
sdk: org.kde.Sdk
command: flacon
rename-desktop-file: flacon.desktop
rename-icon: flacon
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
# Required to load music metadata
- --share=network
# Requested by upstream
# Flacon uses some advanced file scanning techniques not compatible with portals
# https://github.com/flathub/com.github.Flacon/pull/20#issue-773657177
- --filesystem=home
- --filesystem=xdg-run/gvfs
- --filesystem=xdg-run/gvfsd
- --env=TMPDIR=/var/tmp
cleanup:
- /man
- /include
- /share/man
- /share/doc
- /include
- /lib/*.a
- /lib/*.la
modules:
- name: alacenc
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/flacon/alacenc.git
tag: v0.4.1
commit: 9dcfb54438822c0955da98077f63e36ce3d19dd8
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
# Issue has been submitted upstream to replace faac with fdk-aac
# https://github.com/flacon/flacon/issues/117
- name: faac
buildsystem: autotools
sources:
- type: archive
url: https://sourceforge.net/projects/faac/files/faac-src/faac-1.30/faac-1_30.tar.gz
sha256: adc387ce588cca16d98c03b6ec1e58f0ffd9fc6eadb00e254157d6b16203b2d2
- name: vorbis-tools
buildsystem: autotools
sources:
- type: archive
url: https://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.2.tar.gz
sha256: db7774ec2bf2c939b139452183669be84fda5774d6400fc57fde37f77624f0b0
x-checker-data:
type: anitya
project-id: 5104
url-template: https://downloads.xiph.org/releases/vorbis/vorbis-tools-$version.tar.gz
cleanup:
- /bin/vorbiscomment
- /bin/ogginfo
- /bin/oggdec
- /bin/vcut
- /share/locale
- /share/runtime
# Opus splits up their packages in three disctinct components: file,
# encoder and tools. They also officially host their files at Mozilla,
# whith mirrors on Github and others.
- name: opus-file
buildsystem: autotools
sources:
- type: archive
url: https://downloads.xiph.org/releases/opus/opusfile-0.12.tar.gz
sha256: 118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b
x-checker-data:
type: anitya
project-id: 10353
url-template: https://downloads.xiph.org/releases/opus/opusfile-$version.tar.gz
- name: opus-encoder
buildsystem: autotools
sources:
- type: archive
url: https://archive.mozilla.org/pub/opus/libopusenc-0.2.1.tar.gz
sha256: 8298db61a8d3d63e41c1a80705baa8ce9ff3f50452ea7ec1c19a564fe106cbb9
x-checker-data:
type: anitya
project-id: 17877
url-template: https://archive.mozilla.org/pub/opus/libopusenc-$version.tar.gz
- name: opus-tools
buildsystem: autotools
sources:
- type: archive
url: https://archive.mozilla.org/pub/opus/opus-tools-0.2.tar.gz
sha256: b4e56cb00d3e509acfba9a9b627ffd8273b876b4e2408642259f6da28fa0ff86
x-checker-data:
type: anitya
project-id: 7905
url-template: https://archive.mozilla.org/pub/opus/opus-tools-$version.tar.gz
- name: sox
buildsystem: autotools
config-opts:
- --without-dyn-default
- --without-static
- --disable-symlinks
- --without-alsa
- --without-pulseaudio
- --without-oss
- --without-gsm
- --without-lpc10
- --with-flac=yes
- --with-mp3=yes
- --with-oggvorbis=yes
- --with-sndfile=no
- --with-wavpack=yes
sources:
- type: archive
url: https://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.bz2
sha256: 81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c
x-checker-data:
type: anitya
project-id: 4858
url-template: https://sourceforge.net/projects/sox/files/sox/$version/sox-$version.tar.bz2
- name: ttaenc
buildsystem: simple
build-commands:
- |
if [ "$FLATPAK_ARCH" = "aarch64" ]; then
$(sed -i 's/-msse//g' ./Makefile)
fi
- make
- install -m 755 ttaenc /app/bin
sources:
- type: archive
url: https://sourceforge.net/projects/tta/files/tta/ttaenc-src/ttaenc-3.4.1-src.tgz
sha256: b2c9c8b015acc5864f082a0157f2e09c5117d1445321cb6178e925b448be3dc6
- shared-modules/mac/mac.json
# requirement for taglib 2, which we'll need in the future
- name: utfcpp
disabled: true
buildsystem: cmake-ninja
sources:
- type: archive
url: https://github.com/nemtrif/utfcpp/archive/refs/tags/v4.0.6.tar.gz
sha256: 6920a6a5d6a04b9a89b2a89af7132f8acefd46e0c2a7b190350539e9213816c0
x-checker-data:
type: anitya
project-id: 20545
url-template: https://github.com/nemtrif/utfcpp/archive/refs/tags/v$version.tar.gz
# Taglib 2 crashes when converting .flac disk with .cue, to .alac files
- name: taglib
buildsystem: cmake-ninja
sources:
- type: archive
url: https://taglib.org/releases/taglib-1.13.1.tar.gz
sha256: c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b
x-checker-data:
type: anitya
project-id: 1982
url-template: https://taglib.org/releases/taglib-$version.tar.gz
versions:
<: '2'
- name: uchardet
buildsystem: cmake-ninja
config-opts:
- -DBUILD_BINARY=NO
- -DBUILD_STATIC=NO
sources:
- type: archive
url: https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz
sha256: e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0
x-checker-data:
type: anitya
project-id: 9265
url-template: https://www.freedesktop.org/software/uchardet/releases/uchardet-$version.tar.xz
- name: flacon
buildsystem: cmake-ninja
config-opts:
# Removes certain features that make no sense within Flatpak,
# like the option to select audio libraries
- -DFLATPAK_BUNDLE=YES
sources:
- type: archive
url: https://github.com/flacon/flacon/archive/v11.4.0.tar.gz
sha256: 48d0c71d062e52e3babafc2c4e7723276e63c9b4ca58d47e6566e0d72c5d8659
x-checker-data:
type: anitya
project-id: 8408
url-template: https://github.com/flacon/flacon/archive/v$version.tar.gz
- name: flacon-progs
buildsystem: simple
build-commands:
- ln -s /usr/bin/flac /app/bin/flac
- ln -s /usr/bin/lame /app/bin/lame
- ln -s /usr/bin/wavpack /app/bin/wavpack
- ln -s /usr/bin/wvunpack /app/bin/wvunpack