aboutsummaryrefslogtreecommitdiffstats
path: root/community/gallery-dl/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gallery-dl/APKBUILD')
-rw-r--r--community/gallery-dl/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/gallery-dl/APKBUILD b/community/gallery-dl/APKBUILD
new file mode 100644
index 00000000000..2d2f1078b46
--- /dev/null
+++ b/community/gallery-dl/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
+# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
+pkgname=gallery-dl
+pkgver=1.26.8
+pkgrel=0
+pkgdesc="CLI tool to download image galleries"
+url="https://github.com/mikf/gallery-dl"
+arch="noarch"
+license="GPL-2.0-or-later"
+depends="py3-requests python3"
+makedepends="py3-gpep517 py3-setuptools py3-wheel"
+checkdepends="py3-pytest yt-dlp"
+subpackages="
+ $pkgname-doc
+ $pkgname-pyc
+ $pkgname-bash-completion
+ $pkgname-zsh-completion
+ $pkgname-fish-completion
+ "
+source="$pkgname-$pkgver.tar.gz::https://github.com/mikf/gallery-dl/archive/v$pkgver.tar.gz"
+
+build() {
+ make man completion
+
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
+}
+
+check() {
+ make test
+}
+
+package() {
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
+}
+
+sha512sums="
+f8093d8e51c815333a182d1cdf5134d2e54d10b44067a0130943993d63e49d4e51d5bb9eb1704b7999639e73ae8ab4cadb6a8d0fb444abbe26ffdc445e5cdb5f gallery-dl-1.26.8.tar.gz
+"