void-packages/srcpkgs/python-Whoosh/template

33 lines
904 B
Bash

# Template file for 'python-whoosh'
pkgname=python-Whoosh
version=2.7.4
revision=1
wrksrc="Whoosh-${version}"
archs=noarch
build_style=python-module
pycompile_module="whoosh"
hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python"
short_desc="Full-text indexing and searching library (Python2)"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="BSD-2-Clause"
homepage="https://bitbucket.org/mchaput/whoosh/wiki/Home"
distfiles="${PYPI_SITE}/W/Whoosh/Whoosh-${version}.tar.gz"
checksum=7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-Whoosh_package() {
short_desc="${short_desc/Python2/Python3}"
pycompile_module="whoosh"
archs=noarch
depends="python3"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}