Date: Sunday, January 22, 2023 @ 07:26:54
  Author: grawlinson
Revision: 1387658

addpkg: python-shippinglabel 1.4.1-1

Added:
  python-shippinglabel/
  python-shippinglabel/repos/
  python-shippinglabel/trunk/
  python-shippinglabel/trunk/PKGBUILD

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

Added: python-shippinglabel/trunk/PKGBUILD
===================================================================
--- python-shippinglabel/trunk/PKGBUILD                         (rev 0)
+++ python-shippinglabel/trunk/PKGBUILD 2023-01-22 07:26:54 UTC (rev 1387658)
@@ -0,0 +1,52 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-shippinglabel
+pkgver=1.4.1
+pkgrel=1
+pkgdesc='Utilities for handling Python packages'
+arch=('any')
+url='https://shippinglabel.readthedocs.io/'
+license=('MIT')
+depends=(
+  'python'
+  'python-apeye'
+  'python-dist-meta'
+  'python-dom-toml'
+  'python-domdf-python-tools'
+  'python-packaging'
+  'python-platformdirs'
+  'python-typing-extensions'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+#checkdepends=('')
+#optdepends=('')
+_commit='c61c0a2060f13ce7e51d3c68b5a3f322bc4efbfd'
+source=("$pkgname::git+https://github.com/domdfcoding/shippinglabel#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