Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/snap/snapcraft.yaml
5457 views
1
%YAML 1.1
2
---
3
# Snapcraft Recipe for gallery-dl
4
# ------------------------------
5
# This file is in the YAML data serialization format:
6
# http://yaml.org
7
# For the spec. of writing this file refer the following documentation:
8
# * The snapcraft format
9
# https://docs.snapcraft.io/the-snapcraft-format/8337
10
# * Snap Documentation
11
# https://docs.snapcraft.io
12
# * Topics under the doc category in the Snapcraft Forum
13
# https://forum.snapcraft.io/c/doc
14
# For support refer to the snapcraft section in the Snapcraft Forum:
15
# https://forum.snapcraft.io/c/snapcraft
16
name: gallery-dl
17
license: GPL-2.0
18
base: core22
19
summary: Download image-galleries and -collections from several image hosting sites
20
description: |
21
`gallery-dl` is a command-line program to download image-galleries and -collections from several image hosting sites (see [Supported Sites][1]). It is a cross-platform tool with many configuration options and powerful filenaming capabilities.
22
23
[1]: https://github.com/mikf/gallery-dl/blob/master/docs/supportedsites.rst
24
25
adopt-info: gallery-dl
26
confinement: strict
27
grade: stable
28
29
# Configuration access
30
plugs:
31
config-gallery-dl:
32
interface: personal-files
33
read:
34
- $HOME/.config/gallery-dl
35
- $HOME/.gallery-dl.conf
36
etc-gallery-dl:
37
interface: system-files
38
read:
39
- /etc/gallery-dl.conf
40
dot-netrc:
41
interface: personal-files
42
read:
43
- $HOME/.netrc
44
45
parts:
46
# Launcher programs to fix problems at runtime
47
launchers:
48
source: snap/local/launchers
49
plugin: dump
50
organize:
51
'*': bin/
52
53
gallery-dl:
54
source: .
55
override-pull: |
56
craftctl default
57
${CRAFT_PROJECT_DIR}/snap/local/scriptlets/selective-checkout
58
59
plugin: python
60
build-packages:
61
- make
62
63
# selective-checkout scriptlet dependencies
64
- curl
65
- git
66
- jq
67
- sed
68
python-packages:
69
- yt-dlp[default]
70
override-build: |
71
# build manpages and bash completion
72
make man completion
73
74
craftctl default
75
76
ffmpeg:
77
plugin: nil
78
stage-packages:
79
- ffmpeg
80
- libslang2
81
82
apps:
83
gallery-dl:
84
command-chain:
85
- bin/gallery-dl-launch
86
command: bin/gallery-dl
87
completer: share/bash-completion/completions/gallery-dl
88
plugs:
89
# For `xdg-open` command access for opening OAuth authentication webpages
90
- desktop
91
# Storage access
92
- home
93
- removable-media
94
# Network access
95
- network
96
# For network service for receiving OAuth callback tokens
97
- network-bind
98
environment:
99
LANG: C.UTF-8
100
LC_ALL: C.UTF-8
101
102
# Satisfy FFmpeg's libpulsecommon dependency
103
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pulseaudio
104
105