blob: 75a52be9dfe59bc6a5f0172fd585d3aa41accc9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: jakka <jakkadoujin at gmail dot com>
pkgname=hydownloader-git
_name=hydownloader
pkgver=r619.0f91dbc
pkgrel=1
pkgdesc="Alternative download system for Hydrus"
arch=(x86_64 aarch64)
url="https://gitgud.io/thatfuckingbird/hydownloader"
license=('GNU AGPL')
depends=(
python
python-click
python-bottle
yt-dlp
python-hydrus
python-dateutil
python-requests
python-brotli
gallery-dl
python-pillow
)
makedepends=(
python-poetry
git
)
provides=("hydownloader=${pkgver%%.r*}")
source=(
"git+https://gitgud.io/thatfuckingbird/hydownloader.git"
)
sha512sums=('SKIP')
optdepends=(
'hydownloader-systray-git: Remote management GUI for hydownloader'
'hydrus: Danbooru-like image tagging and searching system for the desktop'
)
prepare() {
cd $srcdir/${_name}
python -m poetry install
}
pkgver() {
cd "$_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd $srcdir/${_name}
python -m poetry build
}
package() {
cd $srcdir/${_name}
python -m installer --destdir $pkgdir $srcdir/${_name}/dist/${_name}-*.whl
}
|