| Name |
graphite |
| Description |
a "smart font" system to handle the complexities of lesser-known languages of the world |
| Version |
1:1.3.14-6 |
| Package Base |
graphite |
| Homepage |
https://graphite.sil.org/ |
| Maintainers |
['Andreas Radke <andyrtr@archlinux.org>', 'AndyRTR <andyrtr@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/graphite |
| Sources |
['gcc15.patch', 'https://github.com/silnrsi/graphite/releases/download/1.3.14/graphite2-1.3.14.tgz'] |
| Dependencies |
['glibc', 'libgcc', 'libstdc++'] |
| Optional-Dependencies |
['graphite-docs'] |
| Build-Dependencies |
['cmake', 'freetype2', 'python', 'doxygen', 'dblatex', 'graphviz', 'asciidoc', 'texlive-xetex'] |
| Provides |
['libgraphite2.so'] |
| Builddate |
14-02-2026 11:08:33 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['LGPL-2.1-or-later OR MPL-2.0 OR GPL-2.0-or-later'] |
| Hash |
c8f6f41db62da69eb8dfa26d80c450322170cd6ea2918f513fff471a533918c6 |
# Maintainer: AndyRTR <andyrtr@archlinux.org>
pkgbase=graphite
pkgname=(graphite graphite-docs)
pkgver=1.3.14
pkgrel=6
epoch=1
arch=('x86_64')
url="https://graphite.sil.org/"
pkgdesc="a \"smart font\" system to handle the complexities of lesser-known languages of the world"
license=('LGPL-2.1-or-later OR MPL-2.0 OR GPL-2.0-or-later')
depends=('glibc' 'libstdc++' 'libgcc')
makedepends=('cmake' 'freetype2' 'python'
# for documentation
'doxygen' 'dblatex' 'graphviz' 'asciidoc' 'texlive-xetex')
checkdepends=('python-fonttools')
# https://github.com/silnrsi/graphite/releases/download/1.3.14/graphite2-1.3.14.sha256sum
source=(https://github.com/silnrsi/graphite/releases/download/${pkgver}/graphite2-${pkgver}.tgz
gcc15.patch)
sha256sums=('f99d1c13aa5fa296898a181dff9b82fb25f6cc0933dbaa7a475d8109bd54209d'
'2296d1c189cfb129403f83e7a704a333147856b37475320965c463386ef9d8ef')
prepare() {
cd graphite2-${pkgver}
patch -Np1 -i ../gcc15.patch # https://github.com/silnrsi/graphite/pull/97
}
build() {
local cmake_options=(
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
-DCMAKE_SKIP_INSTALL_RPATH=ON
-DGRAPHITE2_COMPARE_RENDERER=OFF
-DGRAPHITE2_VM_TYPE=direct
)
cmake -S graphite2-${pkgver} -B build "${cmake_options[@]}"
cmake --build build
cmake --build build -t docs -j1
}
check() {
cd build
ctest --output-on-failure --stop-on-failure -j$(nproc)
}
package_graphite() {
optdepends=('graphite-docs: Documentation')
provides=('libgraphite2.so')
DESTDIR="$pkgdir" cmake --install build
# licenses
install -Dm644 graphite2-${pkgver}/COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_graphite-docs() {
pkgdesc+=" (documentation)"
depends=()
local docdir="${pkgdir}/usr/share/doc/${pkgbase}"
mkdir -p "${docdir}/api"
cp -vrf build/doc/doxygen/{html,latex/refman.pdf} "${docdir}/api"
cp -vrf build/doc/{GTF,manual}.html "${docdir}"
# licenses
install -Dm644 graphite2-${pkgver}/COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set sw=2 sts=-1 et: