contrib/graphite2/Pkgfile

26 lines
863 B
Plaintext
Raw Normal View History

2019-06-11 23:45:45 +02:00
# 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
2019-06-11 23:45:45 +02:00
# Optional: asciidoc dblatex doxygen graphviz
name=graphite2
version=1.3.14
2019-06-11 23:45:45 +02:00
release=1
source=(https://github.com/silnrsi/graphite/releases/download/$version/$name-$version.tgz)
build() {
2020-11-03 19:26:50 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_GRAPHITE2_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_GRAPHITE2_OPTIONS \
2019-06-11 23:45:45 +02:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
2020-11-03 19:26:50 +01:00
-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
2019-06-11 23:45:45 +02:00
-DGRAPHITE2_COMPARE_RENDERER=OFF
find . -type f ! -name "rules" ! -name "changelog" -exec sed -i -e 's/\-03//g' {} \;
2020-11-03 19:26:50 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-06-11 23:45:45 +02:00
}