summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 006a59eb3c42a111165b66edc55d69a672e2bfbc (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
# Maintainer: eggy <eggyrules at gmail dot com>

pkgname=mandown-git
pkgver=r58.fd52093
pkgrel=1
pkgdesc="Command line application and Python library to download and convert comics from various sources"
url="https://github.com/potatoeggy/mandown"
replaces=()
arch=("any")
license=("AGPL3")
depends=("python-requests"
	 "python-typer"
	 "python-feedparser"
	 "python-beautifulsoup4"
	 "python-natsort"
)
makedepends=("git" "python-setuptools" "python-dephell")
provides=()
conflicts=("mandown")
source=("git+$url.git")
sha256sums=("SKIP")

pkgver() {
  cd "$srcdir/mandown"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir/mandown"
    dephell deps convert --from pyproject.toml --to setup.py
}

build() {
    cd "$srcdir/mandown"
    python setup.py build
}

package() {
    cd "$srcdir/mandown"
    python setup.py install --root="$pkgdir" --optimize=1
}