apkbuilds @ 1ef93bbbb4e6e0a7470b128d11c1c5a140ae5553

 1# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
 2# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
 3pkgname=gallery-dl
 4pkgver=1.23.5
 5pkgrel=0
 6pkgdesc="CLI tool to download image galleries"
 7url="https://github.com/mikf/gallery-dl"
 8arch="noarch"
 9license="GPL-2.0-or-later"
10option="!check" #check requires docker
11depends="
12	py3-requests
13	python3
14	"
15makedepends="py3-setuptools"
16checkdepends="py3-pytest yt-dlp"
17subpackages="
18	$pkgname-doc
19	$pkgname-bash-completion
20	$pkgname-zsh-completion
21	$pkgname-fish-completion
22	"
23source="$pkgname-$pkgver.tar.gz::https://github.com/mikf/gallery-dl/archive/v$pkgver.tar.gz"
24
25build() {
26	python3 setup.py build
27
28	make man completion
29}
30
31package() {
32	python3 setup.py install --prefix=/usr --root="$pkgdir"
33
34	# Install fish completion to the correct directory
35	rm -r "$pkgdir"/usr/share/fish/vendor_completions.d
36	install -Dm644 data/completion/gallery-dl.fish \
37		-t "$pkgdir"/usr/share/fish/completions
38}
39
40sha512sums="
4175defb234faf0467e5a957594a58a02cfc75180d63a4b2c24d84061d326fbb46f08ad3230b72adf525f1ba82621963564c556047d4aa06c16cc5124ecd8c075f  gallery-dl-1.23.2.tar.gz
42"