void-packages/srcpkgs/gallery-dl/template

27 lines
843 B
Bash

# Template file for 'gallery-dl'
pkgname=gallery-dl
version=1.10.2
revision=1
archs=noarch
build_style=python3-module
pycompile_module="gallery_dl"
hostmakedepends="python3-setuptools"
depends="python3-requests"
short_desc="Command-line program to download image galleries"
maintainer="SolitudeSF <solitudesf@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/mikf/gallery-dl"
changelog="https://raw.githubusercontent.com/mikf/gallery-dl/master/CHANGELOG.md"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=0305e14ca3a7ea6aeb8c36e98d687e29d5ec3dafdebf610bd5d3959af68272c7
post_build() {
make man completion
}
post_install() {
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/usr/etc/bash_completion.d/gallery-dl.bash_completion \
${DESTDIR}/usr/share/bash-completion/completions/gallery-dl
}