Date: Sunday, November 27, 2022 @ 19:58:21
  Author: arojas
Revision: 1354133

archrelease: copy trunk to community-staging-any

Added:
  ufmt/repos/community-staging-any/
  ufmt/repos/community-staging-any/PKGBUILD
    (from rev 1354132, ufmt/trunk/PKGBUILD)

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

Copied: ufmt/repos/community-staging-any/PKGBUILD (from rev 1354132, 
ufmt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2022-11-27 19:58:21 UTC (rev 1354133)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+
+pkgname=ufmt
+pkgver=2.0.1
+pkgrel=1
+pkgdesc='Safe, atomic formatting with black and µsort'
+arch=('any')
+url='https://github.com/omnilib/ufmt'
+license=('MIT')
+depends=('python-black' 'python-click' 'python-libcst' 'python-moreorless'
+         'python-tomlkit' 'python-trailrunner' 'python-typing_extensions' 
'usort')
+makedepends=('python-build' 'python-installer' 'python-flit-core' 
'python-wheel')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('a6a4619169852be354fa6c037607d11f2a78aa16276ea80a1ba2db569f469d04eaa1894d6e39bc374b4c7ef5a681f1ffc43c965abe893a0f415153d8bac7a7e3')
+
+build() {
+  cd $pkgname-$pkgver
+
+  python -m build -nwx
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  python -m ufmt.tests
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python -m installer -d "$pkgdir" dist/*.whl
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to