summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9f05a27ba7261bd29175a56d3bcbaeb823b7383 (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
# Maintainer: Daniel Chen <danielchen04 at hotmail dot ca>

pkgname=noveldown-git
pkgver=r60.ed77851
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"
)
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
}