# Template file for 'fontforge'
pkgname=fontforge
version=20220308
revision=1
build_style=cmake
hostmakedepends="automake ca-certificates gettext libltdl-devel libtool m4
 pkg-config python3"
makedepends="desktop-file-utils giflib-devel gtk+3-devel hicolor-icon-theme
 libjpeg-turbo-devel libltdl-devel libpng-devel libspiro-devel libxml2-devel
 pango-devel python3-devel readline-devel tiff-devel woff2-devel zlib-devel"
depends="desktop-files-utils"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="Create and modify PostScript, TrueType and SVG fonts"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="http://fontforge.github.io/en-US/"
distfiles="https://github.com/fontforge/fontforge/archive/${version}.tar.gz"
checksum=58bbc759eb102263be835e6c006b1c16b508ba3d0252acd5389062826764f7a5

post_extract() {
	# Disable unused #include <execinfo.h>
	vsed -i fontforge/cvundoes.c -e "s;\(.*#include <execinfo.h>\);//\1;"
}

post_install() {
	vcopy contrib/cidmap/Adobe-* usr/share/fontforge
}
