void-packages/srcpkgs/python3-fonttools/template
2019-09-28 23:53:48 +02:00

31 lines
1 KiB
Bash

# Template file for 'python3-fonttools'
pkgname=python3-fonttools
version=4.0.2
revision=1
wrksrc="${pkgname#python3-}-${version}"
build_style=python3-module
pycompile_module="fonttools"
hostmakedepends="python3-devel python3-setuptools"
makedepends="${hostmakedepends}"
short_desc="Library to manipulate font files from Python3"
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=0c92b058ccbcd44f71fe094c06bba105c989ae552852486411cd19a3763eed2c
alternatives="
fonttools:fonttools:/usr/bin/fonttools3
fonttools:pyftmerge:/usr/bin/pyftmerge3
fonttools:pyftsubset:/usr/bin/pyftsubset3
fonttools:ttx:/usr/bin/ttx3
fonttools:ttx.1:/usr/share/man/man1/ttx3.1"
post_install() {
mv ${DESTDIR}/usr/bin/fonttools{,3}
mv ${DESTDIR}/usr/bin/pyftmerge{,3}
mv ${DESTDIR}/usr/bin/pyftsubset{,3}
mv ${DESTDIR}/usr/bin/ttx{,3}
mv ${DESTDIR}/usr/share/man/man1/ttx{,3}.1
vlicense LICENSE
vlicense LICENSE.external
}