Date: Thursday, April 6, 2023 @ 17:00:58
Author: felixonmars
Revision: 1439855
archrelease: copy trunk to community-staging-any
Added:
python-funcparserlib/repos/community-staging-any/
python-funcparserlib/repos/community-staging-any/PKGBUILD
(from rev 1439853, python-funcparserlib/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-funcparserlib/repos/community-staging-any/PKGBUILD (from rev
1439853, python-funcparserlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 17:00:58 UTC (rev 1439855)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-funcparserlib
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="Recursive descent parsing library based on functional combinators"
+url="https://funcparserlib.pirx.ru"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-six')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/vlasovskikh/funcparserlib/archive/$pkgver.tar.gz")
+sha512sums=('d64fe07337822077a0aab6d5049cd81f2ac56ccd9d1db2522c245cadf8cc8421ff1c7931f6a075d821a8634ac8aea51c7ae30fe763e679b70b35955a3f6aa8c7')
+
+build() {
+ cd funcparserlib-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd funcparserlib-$pkgver
+ python -m unittest discover
+}
+
+package() {
+ cd funcparserlib-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}