void-packages/srcpkgs/python-inotify/template

39 lines
1.0 KiB
Bash

# Template file for 'python-inotify'
pkgname=python-inotify
version=0.9.6
revision=2
noarch=yes
wrksrc="pyinotify-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="pyinotify.py"
short_desc="Monitoring filesystems events with inotify on Linux (Python2)"
homepage="https://github.com/seb-m/pyinotify/"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
distfiles="${PYPI_SITE}/p/pyinotify/pyinotify-${version}.tar.gz"
checksum=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4
post_install() {
vlicense COPYING
}
python3-inotify_package() {
noarch=yes
depends="python3"
pycompile_module="pyinotify.py"
replaces="python3.4-inotify>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING
}
}
python3.4-inotify_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-inotify>=${version}_${revision}"
}