Date: Sunday, January 22, 2023 @ 07:14:23
  Author: grawlinson
Revision: 1387648

addpkg: python-domdf-python-tools 3.6.0-1

Added:
  python-domdf-python-tools/
  python-domdf-python-tools/repos/
  python-domdf-python-tools/trunk/
  python-domdf-python-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Added: python-domdf-python-tools/trunk/PKGBUILD
===================================================================
--- python-domdf-python-tools/trunk/PKGBUILD                            (rev 0)
+++ python-domdf-python-tools/trunk/PKGBUILD    2023-01-22 07:14:23 UTC (rev 
1387648)
@@ -0,0 +1,49 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-domdf-python-tools
+pkgver=3.6.0
+pkgrel=1
+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
+}

Reply via email to