# Template file for 'gallery-dl'
pkgname=gallery-dl
version=1.10.5
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=0ed5935a5b40aad339f680c194bfe66be073a4c852b994606fb84bede86d5942

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
}
