blob: 5d26e97638147d8ed889a72dca243da71b141735 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: jyantis <yantis@yantis.net>
# Contributor: Sandro Munda <munda.sandro@gmail.com>
pkgname=python-watchdog-git
pkgver=4.0.2.r1466.9f23b59
pkgrel=1
pkgdesc="Python library and shell utilities to monitor filesystem events."
arch=('any')
url='https://github.com/gorakhargosh/watchdog'
license=('Apache-2.0')
depends=('python')
optdepends=('python-yaml: for watchmedo')
source=('git+https://github.com/gorakhargosh/watchdog.git')
sha256sums=('SKIP')
makedepends=('git' 'python-setuptools')
provides=("python-watchdog=$pkgver")
conflicts=('python-watchdog')
pkgver() {
cd watchdog
printf "%s." "$(grep -Ri "VERSION_MAJOR = " src/watchdog/version.py | awk 'BEGIN {FS = " "} {print $3}')"
printf "%s." "$(grep -Ri "VERSION_MINOR = " src/watchdog/version.py | awk 'BEGIN {FS = " "} {print $3}')"
printf "%s." "$(grep -Ri "VERSION_BUILD = " src/watchdog/version.py | awk 'BEGIN {FS = " "} {print $3}')"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd watchdog
python setup.py build
}
# Half the time check fails on one of the 51 tests for delayed queue
# check() {
# cd watchdog
# python setup.py test --verbose
#}
package() {
cd watchdog
python setup.py install --root="${pkgdir}" --optimize=1
# Install License
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Install Documentation
install -D -m644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
}
# vim:set ts=2 sw=2 et:
|