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