-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathsnapcraft.yaml
125 lines (118 loc) · 3.01 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
name: varia
base: core24
version: 'v2025.1.24'
summary: Download files, videos and torrents
description: |
Varia is a file, video and torrent downloader based on aria2 and yt-dlp
grade: stable
confinement: strict
slots:
dbus-varia:
interface: dbus
bus: session
name: io.github.giantpinkrobots.varia
parts:
python-packages:
plugin: python
source: .
python-packages:
- yt-dlp
- aria2p
build-packages:
- python3-pip
- python3-setuptools
stage-packages:
- python3
aria2:
plugin: autotools
source: https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz
source-checksum: sha256/60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b
override-build: |
./configure \
--without-libxml2 \
--without-sqlite3 \
--without-appletls \
--without-gnutls \
--without-libgmp \
--without-libnettle \
--without-libgcrypt \
--without-libssh2 \
--without-cppunit \
--without-libz \
--without-libcunit \
--without-libcares \
--without-libaria2 \
--disable-nls \
--with-openssl \
--disable-ftp \
--prefix=$SNAPCRAFT_PART_INSTALL
make
make install
build-packages:
- build-essential
- autoconf
- automake
- libssl-dev
- pkg-config
ffmpeg:
plugin: autotools
source: https://ffmpeg.org/releases/ffmpeg-7.1.tar.xz
source-checksum: sha256/40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6
override-build: |
./configure \
--disable-debug \
--disable-devices \
--disable-doc \
--disable-ffplay \
--disable-static \
--enable-gnutls \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-shared \
--prefix=$SNAPCRAFT_PART_INSTALL
make
make install
build-packages:
- build-essential
- libgnutls28-dev
- libmp3lame-dev
- libopus-dev
- libvorbis-dev
- yasm
varia:
plugin: meson
source: .
parse-info: [usr/local/share/metainfo/io.github.giantpinkrobots.varia.metainfo.xml]
build-packages:
- meson
- ninja-build
- gettext
- libglib2.0-dev
- libgtk-4-dev
- desktop-file-utils
stage-packages:
- libssl-dev
- libc6
- libstdc++6
organize:
usr/local: usr
override-prime: |
craftctl default
sed -i 's|Icon=.*|Icon=/usr/share/icons/hicolor/scalable/apps/io.github.giantpinkrobots.varia.svg|' usr/share/applications/io.github.giantpinkrobots.varia.desktop
apps:
varia:
extensions: [gnome]
command: usr/bin/varia
slots:
- dbus-varia
plugs:
- network
- home
- wayland
- x11
- desktop
- desktop-legacy
- shutdown
desktop: usr/share/applications/io.github.giantpinkrobots.varia.desktop
common-id: io.github.giantpinkrobots.varia.desktop