Date: Wednesday, April 5, 2023 @ 18:30:34
Author: felixonmars
Revision: 1437890
archrelease: copy trunk to community-staging-any
Added:
python-filelock/repos/community-staging-any/
python-filelock/repos/community-staging-any/PKGBUILD
(from rev 1437889, python-filelock/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-filelock/repos/community-staging-any/PKGBUILD (from rev 1437889,
python-filelock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 18:30:34 UTC (rev 1437890)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-filelock
+pkgver=3.8.2
+_commit=b8b6f2bdf673bbc404769c8ad749fcd9374af691
+pkgrel=3
+pkgdesc="A platform independent file lock"
+url="https://github.com/benediktschmitt/py-filelock"
+license=('custom:Unlicense')
+arch=('any')
+depends=('python')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest' 'python-pytest-timeout')
+source=("git+https://github.com/benediktschmitt/py-filelock.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd py-filelock
+ python setup.py build
+}
+
+check() {
+ cd py-filelock
+ PYTHONPATH=src pytest tests
+}
+
+package() {
+ cd py-filelock
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}