contrib/graphite2/Pkgfile

24 lines
795 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-08 12:17:36 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_GRAPHITE2+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_GRAPHITE2 \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D GRAPHITE2_COMPARE_RENDERER=OFF \
-Wno-dev
2020-11-03 19:26:50 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-06-11 23:45:45 +02:00
}