49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
# Template file for 'fontforge'
|
|
pkgname=fontforge
|
|
version=20190413
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake ca-certificates git libltdl-devel libtool m4
|
|
pkg-config python"
|
|
makedepends="libltdl-devel python-devel zlib-devel pango-devel readline-devel
|
|
giflib-devel libpng-devel libjpeg-turbo-devel tiff-devel libxml2-devel
|
|
libspiro-devel hicolor-icon-theme desktop-file-utils"
|
|
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
|
|
http://fontforge.github.io/cidmaps.tgz"
|
|
checksum="d3b60f22d7a52fc2b11e1bd515ab7ba3176f8a3228330d2aea4d076896fe025d
|
|
1bf9c7eb8835e6ed94e62cb49f1141bc046c562849e52e6c3c7f1d7cfc95c7b3"
|
|
|
|
pre_configure() {
|
|
./bootstrap
|
|
}
|
|
|
|
pre_build() {
|
|
# Disable unused #include <execinfo.h>
|
|
sed -i fontforge/cvundoes.c -e "s;\(.*#include <execinfo.h>\);//\1;"
|
|
}
|
|
|
|
post_install() {
|
|
vcopy ../Adobe-* usr/share/fontforge
|
|
vmkdir usr/share/icons/hicolor
|
|
vcopy "desktop/tango/*x*" usr/share/icons/hicolor
|
|
vcopy desktop/tango/scalable usr/share/icons/hicolor
|
|
vinstall desktop/org.fontforge.FontForge.desktop 644 usr/share/applications
|
|
vinstall desktop/fontforge.xml 644 /usr/share/mime/packages
|
|
}
|
|
|
|
fontforge-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" -- development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|