# Description: GTK+ Documentation Generator
# URL: https://wiki.gnome.org/DocumentationProject/GtkDoc
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: docbook-xsl glib itstool python3-pygments

name=gtk-doc
version=1.34.0
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)

build() {
  meson setup gtk-doc-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D tests=false \
    -D yelp_manual=false

  meson compile -C build
  DESTDIR=$PKG meson install -C build

  #rm -r $PKG/usr/share/help
}