void-packages/srcpkgs/python-mtranslate/template

32 lines
813 B
Bash

# Template file for 'python-mtranslate'
pkgname=python-mtranslate
version=1.6
revision=2
archs=noarch
wrksrc="mtranslate-${version}"
build_style=python-module
pycompile_module="mtranslate"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Simple api for google translate"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="MIT"
homepage="https://github.com/mouuff/mtranslate"
distfiles="https://github.com/mouuff/mtranslate/archive/${version}.tar.gz"
checksum=58fe274c692717a6e22acaf8712014a4ba1bd9a09409d246f31796f6f0117385
post_install() {
vlicense LICENSE
}
python3-mtranslate_package() {
archs=noarch
pycompile_module="mtranslate"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}