30 lines
1020 B
Bash
30 lines
1020 B
Bash
# Template file for 'python-watchdog'
|
|
pkgname=python-watchdog
|
|
version=0.8.3
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="watchdog-${version}"
|
|
build_style=python-module
|
|
pycompile_module="watchdog"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-yaml python-argh python-pathtools"
|
|
short_desc="Python2 API and shell utilities to monitor file system events"
|
|
maintainer="Maurizio Porrato <maurizio.porrato@gmail.com>"
|
|
homepage="http://github.com/gorakhargosh/watchdog"
|
|
license="Apache-2.0"
|
|
distfiles="${PYPI_SITE}/w/watchdog/watchdog-${version}.tar.gz"
|
|
checksum=7e65882adb7746039b6f3876ee174952f8eaaa34491ba34333ddf1fe35de4162
|
|
alternatives="watchdog:watchmedo:/usr/bin/watchmedo2"
|
|
|
|
python3-watchdog_package() {
|
|
noarch=yes
|
|
pycompile_module="watchdog"
|
|
alternatives="watchdog:watchmedo:/usr/bin/watchmedo3"
|
|
depends="python3-setuptools python3-yaml python3-argh python3-pathtools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vmove usr/bin/watchmedo3
|
|
}
|
|
}
|