Date: Friday, April 7, 2023 @ 04:45:25
Author: felixonmars
Revision: 472915
archrelease: copy trunk to staging-any
Added:
python-tomli-w/repos/staging-any/
python-tomli-w/repos/staging-any/PKGBUILD
(from rev 472914, python-tomli-w/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-tomli-w/repos/staging-any/PKGBUILD (from rev 472914,
python-tomli-w/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2023-04-07 04:45:25 UTC (rev 472915)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+
+pkgname=python-tomli-w
+pkgver=1.0.0
+pkgrel=6
+pkgdesc="A lil' TOML writer"
+url=https://github.com/hukkin/tomli-w
+license=(MIT)
+arch=(any)
+depends=(python)
+makedepends=(
+ git
+ python-build
+ python-flit-core
+ python-installer
+)
+checkdepends=(
+ python-pytest
+ python-tomli
+)
+_tag=19099125f32e7c491603e393263754262b356956
+source=(git+https://github.com/hukkin/tomli-w.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+ cd tomli-w
+ git describe --tags
+}
+
+build() {
+ cd tomli-w
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd tomli-w
+ python -m pytest
+}
+
+package() {
+ python -m installer --destdir="${pkgdir}" tomli-w/dist/*.whl
+ install -Dm 644 tomli-w/LICENSE -t
"${pkgdir}"/usr/share/licenses/python-tomli-w/
+}
+
+# vim: ts=2 sw=2 et: