1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
7 pkgdesc="Documentation tool for public library API"
8 url="https://www.gtk.org/gtk-doc/"
11 depends=(docbook-xsl docbook-xml glib2-docs python-lxml python-pygments
13 makedepends=(dblatex git yelp-tools meson)
14 checkdepends=(bc gtk3 python-six python-parameterized)
15 optdepends=('dblatex: PDF support')
16 _commit=14391142ee9d43da116f0f530746ae34cc46930a # tags/1.33.2^0
17 source=("git+https://gitlab.gnome.org/GNOME/gtk-doc.git#commit=$_commit"
20 '120d6d92fe2040b3500fee17a9c52e3f427cec70637d7aa71dbd561226103237')
24 git describe --tags | sed 's/GTK_DOC_//;s/_/\./g;s/-/+/g'
29 patch -Np1 -i ../fix.diff
33 arch-meson $pkgname build
34 meson compile -C build
38 meson test -C build --print-errorlogs
42 DESTDIR="$pkgdir" meson install -C build
43 python -m compileall -d /usr/lib "$pkgdir/usr/lib"
44 python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"