void-packages/srcpkgs/python-simplebayes/template

33 lines
866 B
Bash
Raw Normal View History

2018-07-09 21:57:38 +02:00
# Template file for 'python-simplebayes'
pkgname=python-simplebayes
version=1.5.7
revision=1
noarch=yes
wrksrc="simplebayes-${version}"
build_style=python-module
pycompile_module="simplebayes"
hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python"
short_desc="Bayesian text classifier (Python2)"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="MIT"
homepage="https://github.com/hickeroar/simplebayes"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=71cb029768bd25c172bdb3bd37174d42f872da92c33329ec736c3748ffa3b4a7
post_install() {
vlicense LICENSE
}
python3-simplebayes_package() {
short_desc="${short_desc/Python2/Python3}"
pycompile_module="simplebayes"
noarch=yes
depends="python3"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}