-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsnapcraft.yaml
97 lines (93 loc) · 2.48 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
name: cyanrip
base: core22
version: git
summary: Fully featured CD ripping program able to take out most of the tedium
license: LGPL-2.1-or-later
description: |
Fully featured CD ripping program able to take out most of the tedium. Fully
accurate, has advanced features most rippers don't, yet has no bloat and is
cross-platform.
contact: https://github.com/cyanreg/
issues: https://github.com/cyanreg/cyanrip/issues
source-code: https://github.com/cyanreg/cyanrip
architectures:
# TODO: test other archs
- build-on: [amd64]
build-for: [amd64]
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
parts:
part-ffmpeg:
# Ubuntu 22.04 LTS bundles too old ffmpeg libraries, so build it here
# TODO: tests? https://ffmpeg.org/fate.html
plugin: autotools
source: https://git.ffmpeg.org/ffmpeg.git
source-branch: release/6.1
autotools-configure-parameters: [
# TODO: consider refactoring with build_ffmpeg() in mingw-build.sh
'--prefix="/usr"',
'--disable-autodetect',
'--disable-programs',
'--disable-doc',
'--disable-avdevice',
'--disable-swscale',
'--disable-postproc',
'--disable-network',
'--disable-bsfs',
'--disable-devices',
'--enable-shared',
'--enable-pthreads',
'--enable-bzlib',
'--enable-iconv',
'--enable-libfdk-aac',
'--enable-libmp3lame',
'--enable-libopus',
'--enable-libvorbis',
'--enable-lzma',
'--enable-zlib',
]
build-packages:
- autoconf
- automake
- build-essential
- cmake
- git-core
- libbz2-dev
- libfdk-aac-dev
- libjconv-dev
- liblzma-dev
- libmp3lame-dev
- libopus-dev
- libtool
- libvorbis-dev
- yasm
- zlib1g-dev
stage-packages:
- libfdk-aac2
- libmp3lame0
- libopus0
- libvorbisenc2
part-cyanrip:
after: [part-ffmpeg]
plugin: meson
meson-parameters: ['--prefix=/usr']
source: .
# TODO: override-pull can be used to parse `git describe` and set
# grade/version accordingly (for tarball builds, etc.)
build-packages:
- gcc
- meson
- ninja-build
- libcdio-paranoia-dev
- libmusicbrainz5-dev
- libcurl4-openssl-dev
stage-packages:
- libcdio-paranoia2
- libcurl4
- libmusicbrainz5-2
apps:
cyanrip:
command: /usr/bin/cyanrip
plugs:
- network
- optical-drive