-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathsnapcraft.yaml
307 lines (282 loc) · 10.2 KB
/
snapcraft.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
name: freac
base: core24
adopt-info: freac
summary: Audio converter and CD ripper
description: |
fre:ac is a free and open source audio converter. It comes with
an integrated tag editor and converts between various formats.
grade: stable
confinement: strict
icon: icons/freac.png
platforms:
amd64:
arm64:
apps:
freac:
command: bin/freac
desktop: share/applications/org.freac.freac.desktop
extensions: [ gnome ]
plugs:
- gsettings
- home
- network
- optical-drive
- audio-playback
- removable-media
freaccmd:
command: bin/freaccmd
extensions: [ gnome ]
plugs:
- home
- network
- optical-drive
- removable-media
parts:
patches:
source: packaging/snapcraft/patches
plugin: dump
prime:
- -*
libcdio:
source: https://github.com/libcdio/libcdio/releases/download/2.2.0/libcdio-2.2.0.tar.bz2
source-checksum: sha256/6f8fbdf4d189cf63f2a7a1549c516cd720c7b222c7aaadbc924a26e745a48539
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr, --disable-cxx, --disable-example-progs, --without-cd-drive, --without-cd-info, --without-cd-read, --without-cdda-player, --without-iso-info, --without-iso-read ]
prime:
- usr/lib/libcdio.so*
libcdio-paranoia:
after: [ libcdio ]
source: https://github.com/libcdio/libcdio-paranoia/releases/download/release-10.2+2.0.2/libcdio-paranoia-10.2+2.0.2.tar.bz2
source-checksum: sha256/186892539dedd661276014d71318c8c8f97ecb1250a86625256abd4defbf0d0c
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr, --disable-cxx, --disable-example-progs ]
prime:
- usr/lib/libcdio_*.so*
libfaad:
after: [ patches ]
source: https://github.com/knik0/faad2/archive/2_10_0.tar.gz
source-checksum: sha256/0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment:
- PATH: "/usr/bin:$PATH"
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
override-build: |
patch -p1 < $CRAFT_STAGE/faad2-2.10.0-configure.patch
chmod a+x configure
craftctl default
prime:
- usr/lib/libfaad.so*
libfdk-aac:
source: https://github.com/mstorsjo/fdk-aac/archive/v2.0.3.tar.gz
source-checksum: sha256/e25671cd96b10bad896aa42ab91a695a9e573395262baed4e4a2ff178d6a3a78
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment:
- CXXFLAGS: "${CXXFLAGS-} -O3 -funroll-loops"
override-build: |
autoreconf -i
craftctl default
prime:
- usr/lib/libfdk-aac.so*
libflac:
after: [ libogg ]
source: https://ftp.osuosl.org/pub/xiph/releases/flac/flac-1.5.0.tar.xz
source-checksum: sha256/f2c1c76592a82ffff8413ba3c4a1299b6c7ab06c734dee03fd88630485c2b920
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr, --disable-cpp-libs, --disable-vsx ]
build-environment:
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
prime:
- usr/lib/libFLAC.so*
libmac:
source: https://freac.org/patches/MAC_1096_SDK.zip
source-checksum: sha256/73b25a517079bb015e2066b65854a7de0d8468f050b9b96025b7a3cb038f4dba
source-subdir: .
plugin: cmake
cmake-parameters: [ -DCMAKE_INSTALL_PREFIX=/usr ]
build-environment:
- CXXFLAGS: "${CXXFLAGS-} -O3 -funroll-loops"
override-build: |
if [ `lscpu | grep -i 'byte order' | awk '{ print tolower($3) }'` = "little" ]; then
craftctl default
fi
prime:
- usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libMAC.so*
libmp3lame:
after: [ patches ]
source: https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz
source-checksum: sha256/ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr, --enable-nasm, --disable-frontend ]
build-environment:
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
override-build: |
if [ "$CRAFT_ARCH_BUILD_FOR" = "amd64" ]; then
patch -p0 < $CRAFT_STAGE/lame-3.100-sse-20171014.patch
fi
craftctl default
prime:
- usr/lib/libmp3lame.so*
libmp4v2:
source: https://github.com/enzo1982/mp4v2/releases/download/v2.1.3/mp4v2-2.1.3.tar.bz2
source-checksum: sha256/033185c17bf3c5fdd94020c95f8325be2e5356558e3913c3d6547a85dd61f7f1
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment:
- CXXFLAGS: "${CXXFLAGS-} -Os"
prime:
- usr/lib/libmp4v2.so*
libmpg123:
source: https://mpg123.de/download/mpg123-1.32.10.tar.bz2
source-checksum: sha256/87b2c17fe0c979d3ef38eeceff6362b35b28ac8589fbf1854b5be75c9ab6557c
plugin: make
build-environment:
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
override-build: |
if [ "$CRAFT_ARCH_BUILD_FOR" = "i386" ]; then
./configure --prefix=/usr --with-cpu=sse
elif [ "$CRAFT_ARCH_BUILD_FOR" = "amd64" ]; then
./configure --prefix=/usr --with-cpu=x86-64
elif [ "$CRAFT_ARCH_BUILD_FOR" = "armhf" ]; then
./configure --prefix=/usr --with-cpu=neon
elif [ "$CRAFT_ARCH_BUILD_FOR" = "arm64" ]; then
./configure --prefix=/usr --with-cpu=neon64
else
./configure --prefix=/usr
fi
craftctl default
prime:
- usr/lib/libmpg123.so*
libogg:
after: [ patches ]
source: https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.5.tar.xz
source-checksum: sha256/c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment:
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
prime:
- usr/lib/libogg.so*
libopus:
source: https://ftp.osuosl.org/pub/xiph/releases/opus/opus-1.5.2.tar.gz
source-checksum: sha256/65c1d2f78b9f2fb20082c38cbe47c951ad5839345876e46941612ee87f9a7ce1
plugin: make
build-environment:
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
override-build: |
if [ "$CRAFT_ARCH_BUILD_FOR" = "armhf" ]; then
./configure --prefix=/usr --enable-float-approx --enable-osce --disable-intrinsics --disable-rtcd
else
./configure --prefix=/usr --enable-float-approx --enable-osce
fi
craftctl default
prime:
- usr/lib/libopus.so*
librnnoise:
source: https://github.com/xiph/rnnoise.git
source-commit: 9acc1e5a633e0961a5895a73204df24744f199b6
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment:
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
override-build: |
autoreconf -i
craftctl default
prime:
- usr/lib/librnnoise.so*
libspeex:
source: https://ftp.osuosl.org/pub/xiph/releases/speex/speex-1.2.1.tar.gz
source-checksum: sha256/4b44d4f2b38a370a2d98a78329fefc56a0cf93d1c1be70029217baae6628feea
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment:
- CFLAGS: "${CFLAGS-} -O3 -funroll-loops"
prime:
- usr/lib/libspeex.so*
libvorbis:
after: [ patches, libogg ]
source: https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-1.3.7.tar.xz
source-checksum: sha256/b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment:
- CFLAGS: "${CFLAGS-} -O3"
override-build: |
patch -p1 < $CRAFT_STAGE/libvorbis-1.3.7-aotuv-b6.03.patch
if [ "$CRAFT_ARCH_BUILD_FOR" = "amd64" ]; then
patch -p1 < $CRAFT_STAGE/libvorbis-1.3.7-aotuv-b6.03-lancer.patch
fi
craftctl default
prime:
- usr/lib/libvorbis*.so*
ffmpeg:
source: https://ffmpeg.org/releases/ffmpeg-7.1.tar.xz
source-checksum: sha256/40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr, --disable-autodetect, --enable-gpl, --enable-small, --enable-runtime-cpudetect, --disable-vsx ]
build-packages:
- yasm
prime:
- usr/bin/ffmpeg
icons:
plugin: nil
stage-packages:
- gnome-icon-theme
override-prime: |
mkdir -p share/icons/gnome/32x32/status
cp $CRAFT_STAGE/usr/share/icons/gnome/32x32/status/dialog-error.png share/icons/gnome/32x32/status
cp $CRAFT_STAGE/usr/share/icons/gnome/32x32/status/dialog-information.png share/icons/gnome/32x32/status
cp $CRAFT_STAGE/usr/share/icons/gnome/32x32/status/dialog-question.png share/icons/gnome/32x32/status
cp $CRAFT_STAGE/usr/share/icons/gnome/32x32/status/dialog-warning.png share/icons/gnome/32x32/status
smooth:
after: [ patches ]
source: https://github.com/enzo1982/smooth.git
plugin: make
make-parameters: [ prefix= ]
build-environment:
- CXXFLAGS: "${CXXFLAGS-} -g0 -Os -fno-rtti -fno-exceptions"
build-packages:
- libbz2-dev
- libcurl4-gnutls-dev
- libfribidi-dev
- libjpeg8-dev
- libxml2-dev
stage-packages:
- libcurl3t64-gnutls
- libfribidi0
boca:
after: [ libcdio-paranoia, smooth ]
source: https://github.com/enzo1982/BoCA.git
plugin: make
make-parameters: [ prefix= ]
build-environment:
- CXXFLAGS: "${CXXFLAGS-} -g0 -Os -fno-rtti -fno-exceptions"
override-build: |
patch -p1 < $CRAFT_STAGE/boca-1.1.8-pre-snap.patch
craftctl default
build-packages:
- libexpat1-dev
- libpulse-dev
- liburiparser-dev
stage-packages:
- librubberband2
- liburiparser1
- musepack-tools
- wavpack
freac:
after: [ boca ]
source: https://github.com/enzo1982/freac.git
plugin: make
make-parameters: [ prefix= ]
build-environment:
- CXXFLAGS: "${CXXFLAGS-} -g0 -Os -fno-rtti -fno-exceptions -DFREAC_DATE=\\\\\\\"`date +\"%Y%m%d\"`\\\\\\\""
override-pull: |
craftctl default
craftctl set version=$(echo 1.1.7~`date +"%Y%m%d"`)
sed -i -e 's|Icon=org.freac.freac|Icon=${SNAP}/share/icons/hicolor/128x128/apps/org.freac.freac.png|g' metadata/org.freac.freac.desktop
override-build: |
patch -p1 < $CRAFT_STAGE/freac-1.1.6-pre-snap.patch
craftctl default
build-packages:
- libudev-dev