diff options
author | eggy | 2022-01-13 14:39:35 -0500 |
---|---|---|
committer | eggy | 2022-01-13 14:39:35 -0500 |
commit | 618231a50ce7e8a38ea0dc532b4a87e365f08025 (patch) | |
tree | 34e519330564bc1e4d5d7aba6fb16d433259f74f /PKGBUILD | |
download | aur-618231a50ce7e8a38ea0dc532b4a87e365f08025.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d84729673e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: eggy <eggyrules at gmail dot com> + +pkgname=mandown-git +pkgver=r34.cdeae10 +pkgrel=1 +pkgdesc="Command line application and Python library to download comics from various sources" +url="https://github.com/potatoeggy/mandown" +replaces=() +arch=("any") +license=("AGPL3") +depends=("python-requests" + "python-typer" + "python-feedparser" + "python-beautifulsoup4" +) +makedepends=("git" "python" "python-setuptools" "python-dephell") +provides=("mandown") +conflicts=("${pkgname%-git}") +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 +} |