Date: Saturday, April 8, 2023 @ 05:51:41
Author: felixonmars
Revision: 1441827
archrelease: copy trunk to community-staging-any
Added:
python-domdf-python-tools/repos/community-staging-any/
python-domdf-python-tools/repos/community-staging-any/PKGBUILD
(from rev 1441825, python-domdf-python-tools/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-domdf-python-tools/repos/community-staging-any/PKGBUILD (from
rev 1441825, python-domdf-python-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 05:51:41 UTC (rev 1441827)
@@ -0,0 +1,49 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-domdf-python-tools
+pkgver=3.6.0
+pkgrel=2
+pkgdesc='Helpful functions for Python'
+arch=('any')
+url='https://domdf_python_tools.readthedocs.io/'
+license=('MIT')
+# double check if the importlib packages are actually required
+depends=(
+ 'python'
+ 'python-natsort'
+ 'python-typing_extensions'
+ 'python-pandas'
+ 'python-importlib-metadata'
+ 'python-importlib_resources'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+_commit='8c9abd67c8669cfe21fefe5f4588a67dfe2e63af'
+source=("$pkgname::git+https://github.com/domdfcoding/domdf_python_tools#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}