void-packages/srcpkgs/python-simplebayes/template

32 lines
821 B
Bash

# Template file for 'python-simplebayes'
pkgname=python-simplebayes
version=1.5.8
revision=1
archs=noarch
wrksrc="simplebayes-${version}"
build_style=python-module
pycompile_module="simplebayes"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Bayesian text classifier (Python2)"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="MIT"
homepage="https://github.com/hickeroar/simplebayes"
distfiles="${PYPI_SITE}/s/simplebayes/simplebayes-${version}.tar.gz"
checksum=363418c0ef185ac2158ebbd6d8afb45aa997254fcb809a73ed20a7d5dccf8b85
post_install() {
vlicense LICENSE
}
python3-simplebayes_package() {
short_desc="${short_desc/Python2/Python3}"
pycompile_module="simplebayes"
archs=noarch
depends="python3"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}