void-packages/srcpkgs/python-watchman/template
2020-02-19 19:02:01 +01:00

38 lines
1.3 KiB
Bash

# Template file for 'python-watchman'
pkgname=python-watchman
version=1.4.1
revision=4
create_wrksrc=yes
build_wrksrc="pywatchman-${version}"
build_style=python-module
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}"
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*
}
}