blob: 805de2c855e5e50c5ff313dcbda6dbf244be25b5 (
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
|
# Maintainer: Daniel Chen <danielchen04 at hotmail dot ca>
pkgname=noveldown-git
pkgver=r83.58bcd3c
pkgrel=1
pkgdesc="Webnovel downloader and EPUB converter"
url="https://github.com/potatoeggy/noveldown"
replaces=()
arch=("any")
license=("LGPL3")
depends=(
"python-requests"
"python-typer"
"python-beautifulsoup4"
"python-lxml"
"python-ebooklib"
"python-httpx"
"python-filetype"
)
makedepends=("git" "python-build" "python-installer" "python-poetry-core")
provides=()
conflicts=()
source=("git+$url.git")
sha256sums=("SKIP")
pkgver() {
cd "$srcdir/noveldown"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/noveldown"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/noveldown"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|