[arch-commits] Commit in python-watchdog/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:19:02 UTC 2019
Date: Saturday, October 26, 2019 @ 04:19:01
Author: felixonmars
Revision: 519978
archrelease: copy trunk to community-staging-any
Added:
python-watchdog/repos/community-staging-any/
python-watchdog/repos/community-staging-any/PKGBUILD
(from rev 519975, python-watchdog/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-watchdog/repos/community-staging-any/PKGBUILD (from rev 519975, python-watchdog/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:19:01 UTC (rev 519978)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Francois Boulogne <fboulogne at april dot org>
+
+pkgbase=python-watchdog
+pkgname=('python-watchdog' 'python2-watchdog')
+pkgver=0.9.0
+pkgrel=2
+pkgdesc="Python API and shell utilities to monitor file system events."
+arch=('any')
+url="https://pypi.python.org/pypi/watchdog"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pathtools' 'python2-pathtools'
+ 'python-yaml' 'python2-yaml' 'python-argh' 'python2-argh')
+checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-pytest-timeout'
+ 'python2-pytest-timeout' 'python-pytest-runner' 'python2-pytest-runner')
+source=($pkgbase-$pkgver.tar.gz::https://github.com/gorakhargosh/watchdog/archive/v$pkgver.tar.gz)
+sha512sums=('97fca2642209150a611d931d6f2049a9941a3494a6c566bc18eaa45a8fc2fbd02c712b37a85cc1375eeb65715706ba6b8ecf781b99951721988c318f81eff7c6')
+
+build() {
+ cd watchdog-$pkgver
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd watchdog-$pkgver
+ python setup.py pytest
+ python2 setup.py pytest
+}
+
+package_python-watchdog() {
+ depends=('python-pathtools' 'python-yaml' 'python-argh')
+
+ cd watchdog-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-watchdog() {
+ depends=('python2-pathtools' 'python2-yaml' 'python2-argh')
+
+ cd watchdog-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/bin/watchmedo{,2}
+}
+
+# vim:ts=2:sw=2:et:
More information about the arch-commits
mailing list