diff --git a/srcpkgs/python-simplebayes/template b/srcpkgs/python-simplebayes/template new file mode 100644 index 00000000000..4600557f742 --- /dev/null +++ b/srcpkgs/python-simplebayes/template @@ -0,0 +1,32 @@ +# 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 " +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 + } +} diff --git a/srcpkgs/python3-simplebayes b/srcpkgs/python3-simplebayes new file mode 120000 index 00000000000..aef1fc58782 --- /dev/null +++ b/srcpkgs/python3-simplebayes @@ -0,0 +1 @@ +python-simplebayes \ No newline at end of file