30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
# Template file for 'python-watchdog'
|
|
pkgname=python-watchdog
|
|
version=0.9.0
|
|
revision=2
|
|
archs=noarch
|
|
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=965f658d0732de3188211932aeb0bb457587f04f63ab4c1e33eab878e9de961d
|
|
alternatives="watchdog:watchmedo:/usr/bin/watchmedo2"
|
|
|
|
python3-watchdog_package() {
|
|
archs=noarch
|
|
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
|
|
}
|
|
}
|