void-packages/srcpkgs/python-watchman/template

40 lines
1.3 KiB
Bash

# Template file for 'python-watchman'
pkgname=python-watchman
version=1.4.1
revision=2
wrksrc="pywatchman-${version}"
build_style=python-module
pycompile_module="pywatchman"
hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="watchman"
short_desc="Connect and query Watchman to discover file changes (Python2)"
maintainer="Hoang Nguyen <hoang@wetrust.io>"
license="BSD-3-Clause"
homepage="https://facebook.github.io/watchman/"
distfiles="${PYPI_SITE}/p/pywatchman/pywatchman-${version}.tar.gz
https://raw.githubusercontent.com/facebook/watchman/master/python/LICENSE>LICENSE.txt"
checksum="d0047eb275deafb0011eda0a1a815fbd9742478c3d2b5ad6956d300e447dc2f9
d96f8d0b74d194c021f153c562307697128da61143515c947580b2489a341980"
alternatives="
watchman-make:watchman-make:/usr/bin/watchman-make2
watchman-wait:watchman-wait:/usr/bin/watchman-wait2"
post_install() {
vlicense ../LICENSE.txt
}
python3-watchman_package() {
short_desc="${short_desc/Python2/Python3}"
pycompile_module="pywatchman"
depends="watchman"
alternatives="
watchman-make:watchman-make:/usr/bin/watchman-make3
watchman-wait:watchman-wait:/usr/bin/watchman-wait3"
pkg_install() {
vmove usr/bin/watchman-make3
vmove usr/bin/watchman-wait3
vmove usr/lib/python3*
}
}