diff --git a/srcpkgs/python-babelfish/template b/srcpkgs/python-babelfish/template new file mode 100644 index 00000000000..472c45c1407 --- /dev/null +++ b/srcpkgs/python-babelfish/template @@ -0,0 +1,30 @@ +# Template file for 'python-babelfish' +pkgname=python-babelfish +version=0.5.5 +revision=1 +noarch=yes +wrksrc="babelfish-${version}" +build_style=python-module +pycompile_module="babelfish" +hostmakedepends="python-setuptools python3-setuptools" +short_desc="A module to work with countries and languages (Python2)" +maintainer="Daniel Santana " +license="BSD-3-Clause" +homepage="https://github.com/Diaoul/babelfish" +distfiles="${PYPI_SITE}/b/babelfish/babelfish-${version}.tar.gz" +checksum=8380879fa51164ac54a3e393f83c4551a275f03617f54a99d70151358e444104 + +post_install() { + vlicense LICENSE +} + +python3-babelfish_package() { + noarch=yes + pycompile_module="babelfish" + depends="python3" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-babelfish b/srcpkgs/python3-babelfish new file mode 120000 index 00000000000..eae373b49f6 --- /dev/null +++ b/srcpkgs/python3-babelfish @@ -0,0 +1 @@ +python-babelfish \ No newline at end of file