33 lines
866 B
Bash
33 lines
866 B
Bash
|
# 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
|
||
|
}
|
||
|
}
|