# Description: Outline and bitmap font editor. # URL: https://fontforge.github.io/ # Maintainer: Danny Rawlins, monster dot romster at gmail dot com # Depends on: giflib gtk3 libspiro libuninameslist libwebp potrace woff2 name=fontforge version=20200314 release=1 source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar.xz) build() { if [ -e '/usr/lib/ccache' ]; then PKGMK_FONTFORGE+=' -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache' PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//') fi cmake -S$name-$version -Bbuild -GNinja ${PKGMK_FONTFORGE} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_BUILD_TYPE=Release \ -DENABLE_MAINTAINER_TOOLS=TRUE \ -DENABLE_FONTFORGE_EXTRAS=TRUE \ -DUNIX=TRUE \ -DENABLE_DOCS=FALSE cmake --build build DESTDIR=$PKG cmake --build build --target install rm -r $PKG/usr/share/locale }