1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Brice Carpentier <brice@daknet.org>
6 pkgname=(cairo cairo-docs)
9 pkgdesc="2D graphics library with support for multiple output devices"
10 url="https://cairographics.org/"
35 _commit=c3b672634f0635af1ad0ffa8c15b34fc7c1035cf # tags/1.17.8^0
36 source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit")
41 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
47 # https://bugs.archlinux.org/task/77432
48 # https://gitlab.freedesktop.org/cairo/cairo/-/issues/639
49 git revert -n 47a21c6e30eef91db503a5a183d5c8cf558aaa56
57 -D symbol-lookup=disabled
61 arch-meson cairo build "${meson_options[@]}"
62 meson compile -C build
68 libcairo-script-interpreter.so
72 meson install -C build --destdir "$pkgdir"
74 mkdir -p doc/usr/share
75 mv {"$pkgdir",doc}/usr/share/gtk-doc
78 package_cairo-docs() {
79 pkgdesc+=" (documentation)"
85 # vim:set sw=2 sts=-1 et: