diff options
author | eggy | 2023-01-23 22:09:26 -0500 |
---|---|---|
committer | eggy | 2023-01-23 22:09:26 -0500 |
commit | 56591d432bf80d78894248f138b7c47086f13e1d (patch) | |
tree | c7cbeafde8f2b60cb06260ddb43327d8662ca651 | |
download | aur-56591d432bf80d78894248f138b7c47086f13e1d.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4bb3dd21ffdd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-comicon-git + pkgdesc = Lightweight comic converter library between CBZ, PDF and EPUB + pkgver = r34.53ea21d + pkgrel = 1 + url = https://github.com/potatoeggy/comicon + arch = any + license = AGPL3 + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-poetry-core + makedepends = python-pytest + depends = python-ebooklib + depends = python-pillow + depends = python-lxml + depends = python-pypdf + source = git+https://github.com/potatoeggy/comicon.git + sha256sums = SKIP + +pkgname = python-comicon-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..c6a9b954b0ed --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* + +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7111edb188c4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Daniel Chen <danielchen04 at hotmail dot ca> + +pkgname=python-comicon-git +pkgver=r34.53ea21d +pkgrel=1 +pkgdesc="Lightweight comic converter library between CBZ, PDF and EPUB" +url="https://github.com/potatoeggy/comicon" +replaces=() +arch=("any") +license=("AGPL3") +depends=( + "python-ebooklib" + "python-pillow" + "python-lxml" + "python-pypdf" +) +makedepends=("git" "python-build" "python-installer" "python-poetry-core" "python-pytest") +provides=() +conflicts=() +source=("git+$url.git") +sha256sums=("SKIP") + +pkgver() { + cd "$srcdir/comicon" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/comicon" + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/comicon" + python -m installer --destdir="$pkgdir" dist/*.whl +} |