# Template file for 'python-fonttools'
pkgname=python-fonttools
version=3.43.1
revision=1
wrksrc="${pkgname#python-}-${version}"
build_style=python-module
pycompile_module="fonttools"
hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools"
makedepends="${hostmakedepends}"
short_desc="Library to manipulate font files from Python2"
maintainer="svenper <svenper@tuta.io>"
license="MIT, OFL-1.1, BSD-3-Clause"
homepage="https://github.com/fonttools/fonttools"
distfiles="https://github.com/fonttools/fonttools/archive/${version}.tar.gz"
checksum=12b05c56ac60fe15b2fce6958df1408e054a403270ddfc05d3a096afe73d9419

post_install() {
	vlicense LICENSE
	vlicense LICENSE.external
}

python3-fonttools_package() {
	pycompile_module="fonttools"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove "usr/lib/python3*"
		vmove "usr/bin/*3"
		vlicense LICENSE
		vlicense LICENSE.external
	}
}
