aboutsummaryrefslogtreecommitdiff
path: root/pkgs/gallery-dl/APKBUILD
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:04:20 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:09:35 +0200
commit307af8fd5a3e74ebcb64ac5bbe57493b59ead233 (patch)
treed7f1e97a46713925041a6fa4de4dab5694529c7c /pkgs/gallery-dl/APKBUILD
parent6d706f14b057e25b4b116ed1ee8c4db4b89454ab (diff)
downloadapkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.gz
apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.bz2
apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.zip
feat: shamelessly copy pkgkit from sr.ht-apkbuilds
Copy some code from sourcehut's alpine build[0] to build my own packages. [0]: https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds
Diffstat (limited to 'pkgs/gallery-dl/APKBUILD')
-rw-r--r--pkgs/gallery-dl/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/gallery-dl/APKBUILD b/pkgs/gallery-dl/APKBUILD
new file mode 100644
index 0000000..e503ca3
--- /dev/null
+++ b/pkgs/gallery-dl/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
+# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
+pkgname=gallery-dl
+pkgver=1.23.2
+pkgrel=0
+pkgdesc="CLI tool to download image galleries"
+url="https://github.com/mikf/gallery-dl"
+arch="noarch"
+license="GPL-2.0-or-later"
+option="!check" #check requires docker
+depends="
+ py3-requests
+ python3
+ "
+makedepends="py3-setuptools"
+checkdepends="py3-pytest yt-dlp"
+subpackages="
+ $pkgname-doc
+ $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() {
+ python3 setup.py build
+
+ make man completion
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # Install fish completion to the correct directory
+ rm -r "$pkgdir"/usr/share/fish/vendor_completions.d
+ install -Dm644 data/completion/gallery-dl.fish \
+ -t "$pkgdir"/usr/share/fish/completions
+}
+
+sha512sums="
+75defb234faf0467e5a957594a58a02cfc75180d63a4b2c24d84061d326fbb46f08ad3230b72adf525f1ba82621963564c556047d4aa06c16cc5124ecd8c075f gallery-dl-1.23.2.tar.gz
+"