From 5ae86d77daf952ef6fb5c48128d23d83b60d5119 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sat, 8 Oct 2022 20:32:48 +0200 Subject: feat: Add gallery-dl Adds gallery-dl from testing branch so I don't have to include it in the build process. --- gallery-dl/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 gallery-dl/APKBUILD (limited to 'gallery-dl') diff --git a/gallery-dl/APKBUILD b/gallery-dl/APKBUILD new file mode 100644 index 0000000..e503ca3 --- /dev/null +++ b/gallery-dl/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Hoang Nguyen +# Maintainer: Hoang Nguyen +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 +" -- cgit v1.2.3