aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-watchdog/APKBUILD
blob: bfdb2ecb244a42646f84fa85c686d9b6dbc3b7be (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-watchdog
pkgver=0.9.0
pkgrel=0
pkgdesc="Python API and shell utilities to monitor file system events."
url="https://github.com/gorakhargosh/watchdog"
arch="noarch"
license="Apache-2.0"
depends="py-pathtools py-yaml py-argh"
depends_dev=""
makedepends="$depends_dev py-setuptools python2-dev"
install=""
subpackages=""
source="watchdog-$pkgver.tar.gz::https://github.com/gorakhargosh/watchdog/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/watchdog-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
        cd "$_builddir"
        python2 setup.py build || return 1
}

package() {
        cd "$_builddir"
        python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="97fca2642209150a611d931d6f2049a9941a3494a6c566bc18eaa45a8fc2fbd02c712b37a85cc1375eeb65715706ba6b8ecf781b99951721988c318f81eff7c6  watchdog-0.9.0.tar.gz"