2019-03-01 14:12:41 +01:00
%YAML 1.1
---
# Snapcraft Recipe for gallery-dl
# ------------------------------
# This file is in the YAML data serialization format:
# http://yaml.org
# For the spec. of writing this file refer the following documentation:
# * The snapcraft format
# https://docs.snapcraft.io/the-snapcraft-format/8337
# * Snap Documentation
# https://docs.snapcraft.io
# * Topics under the doc category in the Snapcraft Forum
# https://forum.snapcraft.io/c/doc
# For support refer to the snapcraft section in the Snapcraft Forum:
# https://forum.snapcraft.io/c/snapcraft
name : gallery-dl
license : GPL-2.0
2021-02-09 19:33:13 +01:00
base : core18
2019-03-01 14:12:41 +01:00
summary : Download image-galleries and -collections from several image hosting sites
description : |
2019-04-09 09:01:25 +02:00
`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.
[1] : https://github.com/mikf/gallery-dl/blob/master/docs/supportedsites.rst
2019-03-01 14:12:41 +01:00
2019-03-13 21:58:46 +01:00
adopt-info : gallery-dl
2019-03-01 14:12:41 +01:00
confinement : strict
grade : stable
plugs :
# For `xdg-open` command access for opening OAuth authentication webpages
desktop :
# Storage access
home :
removable-media : # Non-A/C
# Network access
network :
2024-03-14 09:07:02 +01:00
# For network service for receiving OAuth callback tokens
2019-03-01 14:12:41 +01:00
network-bind :
# Configuration access
2019-05-02 03:25:29 +02:00
config-gallery-dl :
interface : personal-files
2019-03-21 13:49:13 +01:00
read :
- $HOME/.config/gallery-dl
- $HOME/.gallery-dl.conf
2019-05-02 03:25:29 +02:00
etc-gallery-dl :
interface : system-files
2019-03-21 13:49:13 +01:00
read :
- /etc/gallery-dl.conf
2021-03-04 21:36:49 +01:00
dot-netrc :
interface : personal-files
read :
- $HOME/.netrc
2019-03-01 14:12:41 +01:00
parts :
# Launcher programs to fix problems at runtime
launchers :
source : snap/local/launchers
plugin : dump
organize :
'*' : bin/
2020-10-10 14:09:42 +02:00
# Check out the tagged release revision if it isn't promoted to the stable channel
2019-03-29 09:55:43 +01:00
# https://forum.snapcraft.io/t/selective-checkout-check-out-the-tagged-release-revision-if-it-isnt-promoted-to-the-stable-channel/10617
selective-checkout :
2020-10-10 14:09:42 +02:00
source : https://github.com/Lin-Buo-Ren/selective-checkout.git
source-tag : v2.0.0
plugin : dump
2019-03-13 21:58:46 +01:00
build-packages :
2020-10-10 14:09:42 +02:00
# Scriptlet dependencies
- curl
2019-03-13 21:58:46 +01:00
- git
2020-10-10 14:09:42 +02:00
- jq
- sed
stage :
- scriptlets/selective-checkout
2019-04-09 09:00:41 +02:00
prime :
- -*
2019-03-13 21:58:46 +01:00
2019-03-01 14:12:41 +01:00
gallery-dl :
2019-03-13 21:58:46 +01:00
after :
2019-03-29 09:55:43 +01:00
- selective-checkout
2019-03-13 21:58:46 +01:00
2019-03-01 14:12:41 +01:00
source : .
2019-03-29 09:55:43 +01:00
override-pull : |
snapcraftctl pull
$SNAPCRAFT_STAGE/scriptlets/selective-checkout
2019-03-01 14:12:41 +01:00
plugin : python
2019-03-29 09:55:43 +01:00
build-packages :
- make
2019-03-23 09:50:08 +01:00
python-packages :
- youtube_dl
2019-03-29 09:55:43 +01:00
override-build : |
# build manpages and bash completion
2019-03-29 15:33:46 +01:00
make man completion
2019-03-29 09:55:43 +01:00
snapcraftctl build
2019-03-01 14:12:41 +01:00
ffmpeg :
plugin : nil
stage-packages :
- ffmpeg
2022-06-07 15:14:18 +02:00
- libslang2
2019-03-01 14:12:41 +01:00
apps :
gallery-dl :
adapter : full
command-chain :
- bin/gallery-dl-launch
command : bin/gallery-dl
2019-11-08 21:44:12 +01:00
completer : share/bash-completion/completions/gallery-dl
2019-03-01 14:12:41 +01:00
environment :
LANG : C.UTF-8
LC_ALL : C.UTF-8
2019-03-13 21:52:35 +01:00
# Satisfy FFmpeg's libpulsecommon dependency
LD_LIBRARY_PATH : $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio