contrib/graphite2/Pkgfile

26 lines
863 B
Plaintext

# Description: reimplementation of the SIL Graphite text processing engine.
# URL: https://github.com/silnrsi/graphite
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmake freetype python3
# Optional: asciidoc dblatex doxygen graphviz
name=graphite2
version=1.3.14
release=1
source=(https://github.com/silnrsi/graphite/releases/download/$version/$name-$version.tgz)
build() {
[[ -e /usr/bin/ninja ]] && PKGMK_GRAPHITE2_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_GRAPHITE2_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
-DGRAPHITE2_COMPARE_RENDERER=OFF
find . -type f ! -name "rules" ! -name "changelog" -exec sed -i -e 's/\-03//g' {} \;
cmake --build build
DESTDIR=$PKG cmake --install build
}