contrib/fontforge/Pkgfile

31 lines
941 B
Plaintext
Raw Normal View History

2019-02-17 09:38:00 +01:00
# 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
2019-02-17 09:38:00 +01:00
name=fontforge
2020-04-10 04:09:38 +02:00
version=20200314
2019-02-17 09:38:00 +01:00
release=1
2020-04-10 04:09:38 +02:00
source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar.xz)
2019-02-17 09:38:00 +01:00
build() {
2020-04-10 04:09:38 +02:00
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
2019-02-17 09:38:00 +01:00
cmake -S$name-$version -Bbuild -GNinja ${PKGMK_FONTFORGE} \
2020-04-10 04:09:38 +02:00
-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
2020-04-10 04:09:38 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2020-04-10 04:09:38 +02:00
rm -r $PKG/usr/share/locale
2019-02-17 09:38:00 +01:00
}