1
1
name : freac
2
- base : core20
2
+ base : core24
3
3
adopt-info : freac
4
4
summary : Audio converter and CD ripper
5
5
description : |
@@ -11,11 +11,15 @@ confinement: strict
11
11
12
12
icon : icons/freac.png
13
13
14
+ platforms :
15
+ amd64 :
16
+ arm64 :
17
+
14
18
apps :
15
19
freac :
16
20
command : bin/freac
17
21
desktop : share/applications/org.freac.freac.desktop
18
- extensions : [ gnome-3-38 ]
22
+ extensions : [ gnome ]
19
23
plugs :
20
24
- gsettings
21
25
- home
26
30
27
31
freaccmd :
28
32
command : bin/freaccmd
29
- extensions : [ gnome-3-38 ]
33
+ extensions : [ gnome ]
30
34
plugs :
31
35
- home
32
36
- network
@@ -65,11 +69,11 @@ parts:
65
69
autotools-configure-parameters : [ --prefix=/usr ]
66
70
build-environment :
67
71
- PATH : " /usr/bin:$PATH"
68
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
72
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
69
73
override-build : |
70
- patch -p1 < $SNAPCRAFT_STAGE /faad2-2.10.0-configure.patch
74
+ patch -p1 < $CRAFT_STAGE /faad2-2.10.0-configure.patch
71
75
chmod a+x configure
72
- snapcraftctl build
76
+ craftctl default
73
77
prime :
74
78
- usr/lib/libfaad.so*
75
79
@@ -79,10 +83,10 @@ parts:
79
83
plugin : autotools
80
84
autotools-configure-parameters : [ --prefix=/usr ]
81
85
build-environment :
82
- - CXXFLAGS : " $CXXFLAGS -O3 -funroll-loops"
86
+ - CXXFLAGS : " ${ CXXFLAGS-} -O3 -funroll-loops"
83
87
override-build : |
84
88
autoreconf -i
85
- snapcraftctl build
89
+ craftctl default
86
90
prime :
87
91
- usr/lib/libfdk-aac.so*
88
92
93
97
plugin : autotools
94
98
autotools-configure-parameters : [ --prefix=/usr, --disable-cpp-libs, --disable-vsx ]
95
99
build-environment :
96
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
100
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
97
101
prime :
98
102
- usr/lib/libFLAC.so*
99
103
@@ -104,13 +108,13 @@ parts:
104
108
plugin : cmake
105
109
cmake-parameters : [ -DCMAKE_INSTALL_PREFIX=/usr ]
106
110
build-environment :
107
- - CXXFLAGS : " $CXXFLAGS -O3 -funroll-loops"
111
+ - CXXFLAGS : " ${ CXXFLAGS-} -O3 -funroll-loops"
108
112
override-build : |
109
113
if [ `lscpu | grep -i 'byte order' | awk '{ print tolower($3) }'` = "little" ]; then
110
- snapcraftctl build
114
+ craftctl default
111
115
fi
112
116
prime :
113
- - usr/lib/$SNAPCRAFT_ARCH_TRIPLET /libMAC.so*
117
+ - usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR /libMAC.so*
114
118
115
119
libmp3lame :
116
120
after : [ patches ]
@@ -119,12 +123,12 @@ parts:
119
123
plugin : autotools
120
124
autotools-configure-parameters : [ --prefix=/usr, --enable-nasm, --disable-frontend ]
121
125
build-environment :
122
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
126
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
123
127
override-build : |
124
- if [ "$SNAP_ARCH " = "amd64" ]; then
125
- patch -p0 < $SNAPCRAFT_STAGE /lame-3.100-sse-20171014.patch
128
+ if [ "$CRAFT_ARCH_BUILD_FOR " = "amd64" ]; then
129
+ patch -p0 < $CRAFT_STAGE /lame-3.100-sse-20171014.patch
126
130
fi
127
- snapcraftctl build
131
+ craftctl default
128
132
prime :
129
133
- usr/lib/libmp3lame.so*
130
134
@@ -134,7 +138,7 @@ parts:
134
138
plugin : autotools
135
139
autotools-configure-parameters : [ --prefix=/usr ]
136
140
build-environment :
137
- - CXXFLAGS : " $CXXFLAGS -Os"
141
+ - CXXFLAGS : " ${ CXXFLAGS-} -Os"
138
142
prime :
139
143
- usr/lib/libmp4v2.so*
140
144
@@ -143,20 +147,20 @@ parts:
143
147
source-checksum : sha256/3c8919243707951cac0e3c39bbf28653bcaffc43c98ff16801a27350db8f0f21
144
148
plugin : make
145
149
build-environment :
146
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
150
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
147
151
override-build : |
148
- if [ "$SNAP_ARCH " = "i386" ]; then
152
+ if [ "$CRAFT_ARCH_BUILD_FOR " = "i386" ]; then
149
153
./configure --prefix=/usr --with-cpu=sse
150
- elif [ "$SNAP_ARCH " = "amd64" ]; then
154
+ elif [ "$CRAFT_ARCH_BUILD_FOR " = "amd64" ]; then
151
155
./configure --prefix=/usr --with-cpu=x86-64
152
- elif [ "$SNAP_ARCH " = "armhf" ]; then
156
+ elif [ "$CRAFT_ARCH_BUILD_FOR " = "armhf" ]; then
153
157
./configure --prefix=/usr --with-cpu=neon
154
- elif [ "$SNAP_ARCH " = "arm64" ]; then
158
+ elif [ "$CRAFT_ARCH_BUILD_FOR " = "arm64" ]; then
155
159
./configure --prefix=/usr --with-cpu=neon64
156
160
else
157
161
./configure --prefix=/usr
158
162
fi
159
- snapcraftctl build
163
+ craftctl default
160
164
prime :
161
165
- usr/lib/libmpg123.so*
162
166
@@ -167,7 +171,7 @@ parts:
167
171
plugin : autotools
168
172
autotools-configure-parameters : [ --prefix=/usr ]
169
173
build-environment :
170
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
174
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
171
175
prime :
172
176
- usr/lib/libogg.so*
173
177
@@ -176,14 +180,14 @@ parts:
176
180
source-checksum : sha256/65c1d2f78b9f2fb20082c38cbe47c951ad5839345876e46941612ee87f9a7ce1
177
181
plugin : make
178
182
build-environment :
179
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
183
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
180
184
override-build : |
181
- if [ "$SNAP_ARCH " = "armhf" ]; then
185
+ if [ "$CRAFT_ARCH_BUILD_FOR " = "armhf" ]; then
182
186
./configure --prefix=/usr --enable-float-approx --enable-osce --disable-intrinsics --disable-rtcd
183
187
else
184
188
./configure --prefix=/usr --enable-float-approx --enable-osce
185
189
fi
186
- snapcraftctl build
190
+ craftctl default
187
191
prime :
188
192
- usr/lib/libopus.so*
189
193
@@ -193,10 +197,10 @@ parts:
193
197
plugin : autotools
194
198
autotools-configure-parameters : [ --prefix=/usr ]
195
199
build-environment :
196
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
200
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
197
201
override-build : |
198
202
autoreconf -i
199
- snapcraftctl build
203
+ craftctl default
200
204
prime :
201
205
- usr/lib/librnnoise.so*
202
206
@@ -206,7 +210,7 @@ parts:
206
210
plugin : autotools
207
211
autotools-configure-parameters : [ --prefix=/usr ]
208
212
build-environment :
209
- - CFLAGS : " $CFLAGS -O3 -funroll-loops"
213
+ - CFLAGS : " ${ CFLAGS-} -O3 -funroll-loops"
210
214
prime :
211
215
- usr/lib/libspeex.so*
212
216
@@ -217,13 +221,13 @@ parts:
217
221
plugin : autotools
218
222
autotools-configure-parameters : [ --prefix=/usr ]
219
223
build-environment :
220
- - CFLAGS : " $CFLAGS -O3"
224
+ - CFLAGS : " ${ CFLAGS-} -O3"
221
225
override-build : |
222
- patch -p1 < $SNAPCRAFT_STAGE /libvorbis-1.3.7-aotuv-b6.03.patch
223
- if [ "$SNAP_ARCH " = "amd64" ]; then
224
- patch -p1 < $SNAPCRAFT_STAGE /libvorbis-1.3.7-aotuv-b6.03-lancer.patch
226
+ patch -p1 < $CRAFT_STAGE /libvorbis-1.3.7-aotuv-b6.03.patch
227
+ if [ "$CRAFT_ARCH_BUILD_FOR " = "amd64" ]; then
228
+ patch -p1 < $CRAFT_STAGE /libvorbis-1.3.7-aotuv-b6.03-lancer.patch
225
229
fi
226
- snapcraftctl build
230
+ craftctl default
227
231
prime :
228
232
- usr/lib/libvorbis*.so*
229
233
@@ -243,26 +247,26 @@ parts:
243
247
- gnome-icon-theme
244
248
override-prime : |
245
249
mkdir -p share/icons/gnome/32x32/status
246
- cp $SNAPCRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-error.png share/icons/gnome/32x32/status
247
- cp $SNAPCRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-information.png share/icons/gnome/32x32/status
248
- cp $SNAPCRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-question.png share/icons/gnome/32x32/status
249
- cp $SNAPCRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-warning.png share/icons/gnome/32x32/status
250
+ cp $CRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-error.png share/icons/gnome/32x32/status
251
+ cp $CRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-information.png share/icons/gnome/32x32/status
252
+ cp $CRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-question.png share/icons/gnome/32x32/status
253
+ cp $CRAFT_STAGE /usr/share/icons/gnome/32x32/status/dialog-warning.png share/icons/gnome/32x32/status
250
254
251
255
smooth :
252
256
after : [ patches ]
253
257
source : https://github.com/enzo1982/smooth.git
254
258
plugin : make
255
259
make-parameters : [ prefix= ]
256
260
build-environment :
257
- - CXXFLAGS : " $CXXFLAGS -g0 -Os -fno-rtti -fno-exceptions"
261
+ - CXXFLAGS : " ${ CXXFLAGS-} -g0 -Os -fno-rtti -fno-exceptions"
258
262
build-packages :
259
263
- libbz2-dev
260
264
- libcurl4-gnutls-dev
261
265
- libfribidi-dev
262
266
- libjpeg8-dev
263
267
- libxml2-dev
264
268
stage-packages :
265
- - libcurl3 -gnutls
269
+ - libcurl3t64 -gnutls
266
270
- libfribidi0
267
271
268
272
boca :
@@ -271,10 +275,10 @@ parts:
271
275
plugin : make
272
276
make-parameters : [ prefix= ]
273
277
build-environment :
274
- - CXXFLAGS : " $CXXFLAGS -g0 -Os -fno-rtti -fno-exceptions"
278
+ - CXXFLAGS : " ${ CXXFLAGS-} -g0 -Os -fno-rtti -fno-exceptions"
275
279
override-build : |
276
- patch -p1 < $SNAPCRAFT_STAGE /boca-1.1.8-pre-snap.patch
277
- snapcraftctl build
280
+ patch -p1 < $CRAFT_STAGE /boca-1.1.8-pre-snap.patch
281
+ craftctl default
278
282
build-packages :
279
283
- libexpat1-dev
280
284
- libpulse-dev
@@ -291,13 +295,13 @@ parts:
291
295
plugin : make
292
296
make-parameters : [ prefix= ]
293
297
build-environment :
294
- - CXXFLAGS : " $CXXFLAGS -g0 -Os -fno-rtti -fno-exceptions -DFREAC_DATE=\\\\\\\" `date +\" %Y%m%d\" `\\\\\\\" "
298
+ - CXXFLAGS : " ${ CXXFLAGS-} -g0 -Os -fno-rtti -fno-exceptions -DFREAC_DATE=\\\\\\\" `date +\" %Y%m%d\" `\\\\\\\" "
295
299
override-pull : |
296
- snapcraftctl pull
297
- snapcraftctl set-version " $(echo 1.1.7~`date +"%Y%m%d"`)"
300
+ craftctl default
301
+ craftctl set version= $(echo 1.1.7~`date +"%Y%m%d"`)
298
302
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
299
303
override-build : |
300
- patch -p1 < $SNAPCRAFT_STAGE /freac-1.1.6-pre-snap.patch
301
- snapcraftctl build
304
+ patch -p1 < $CRAFT_STAGE /freac-1.1.6-pre-snap.patch
305
+ craftctl default
302
306
build-packages :
303
307
- libudev-dev
0 commit comments