[arch-commits] Commit in python-filelock/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:53:47 UTC 2019


    Date: Friday, October 25, 2019 @ 15:53:47
  Author: felixonmars
Revision: 519256

archrelease: copy trunk to community-staging-any

Added:
  python-filelock/repos/community-staging-any/
  python-filelock/repos/community-staging-any/PKGBUILD
    (from rev 519254, python-filelock/trunk/PKGBUILD)

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

Copied: python-filelock/repos/community-staging-any/PKGBUILD (from rev 519254, python-filelock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:53:47 UTC (rev 519256)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-filelock
+pkgname=(python-filelock python2-filelock)
+pkgver=3.0.12
+pkgrel=2
+pkgdesc="A platform independent file lock"
+url="https://github.com/benediktschmitt/py-filelock"
+license=('custom:Unlicense')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/benediktschmitt/py-filelock/archive/v$pkgver.tar.gz")
+sha512sums=('0f30b54b9de2540f023855effcc582b18fedcee6681f21e1733f1b60dbd39eb148e3830bc798a44c5e8c22e7ea8ca26b6d4547fae79dacc78c62b819a3d84683')
+
+build() {
+  cd py-filelock-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd py-filelock-$pkgver
+  pytest test.py
+  pytest2 test.py
+}
+
+package_python-filelock() {
+  depends=('python')
+
+  cd py-filelock-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+package_python2-filelock() {
+  depends=('python2')
+
+  cd py-filelock-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list