Date: Thursday, April 6, 2023 @ 14:25:48
Author: felixonmars
Revision: 1439215
archrelease: copy trunk to community-staging-any
Added:
python-toposort/repos/community-staging-any/
python-toposort/repos/community-staging-any/PKGBUILD
(from rev 1439212, python-toposort/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: python-toposort/repos/community-staging-any/PKGBUILD (from rev 1439212,
python-toposort/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 14:25:48 UTC (rev 1439215)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-toposort
+pkgver=1.10
+pkgrel=2
+pkgdesc='Implements a topological sort algorithm'
+arch=('any')
+license=('Apache')
+url='https://gitlab.com/ericvsmith/toposort'
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+source=("https://gitlab.com/ericvsmith/toposort/-/archive/$pkgver/toposort-$pkgver.tar.bz2")
+sha512sums=('a1bf41e7324b56eaf914e6b89f0ec5e18c6661d8d31b429e169086c71d1060b6aa0e29cc048fe971455b5b43e500a1d74fea0168c4c869cdab09206ba3f9c50f')
+
+build() {
+ cd toposort-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd toposort-$pkgver
+ make test
+}
+
+package() {
+ cd toposort-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}