1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Kevin <kevin@archlinux.org>
3 # Contributor: criminy <criminy@gmail.com>
6 pkgname=(cairomm-1.16 cairomm-1.16-docs)
9 pkgdesc="C++ bindings for Cairo"
10 url="https://www.cairographics.org/cairomm/"
13 depends=(cairo libsigc++-3.0)
14 makedepends=(git meson mm-common)
16 _commit=9dcaeb7af1620ed509bd471a0c8b27aff459178c # tags/1.16.2^0
17 source=("git+https://gitlab.freedesktop.org/cairo/cairomm.git#commit=$_commit")
22 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
30 arch-meson cairomm build -D maintainer-mode=true
31 meson compile -C build
35 meson test -C build --print-errorlogs
38 package_cairomm-1.16() {
39 depends+=(libsigc-3.0.so)
40 provides=(libcairomm-1.16.so)
42 meson install -C build --destdir "$pkgdir"
45 mkdir -p docs/usr/share
46 mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
49 package_cairomm-1.16-docs() {
50 pkgdesc+=" (documentation)"
54 mv -t "$pkgdir" docs/*
57 # vim:set sw=2 sts=-1 et: