1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: György Balló <ballogy@freestart.hu>
5 pkgname=(gssdp gssdp-docs)
8 pkgdesc="A GObject-based API for handling resource discovery and announcement over SSDP"
9 url="https://wiki.gnome.org/Projects/GUPnP"
12 depends=(glib2 libsoup3)
13 makedepends=(gobject-introspection gi-docgen vala meson git gtk4 pandoc)
15 _commit=c2d417d6a79f03c095e5730efd60015eb3109a82 # tags/gssdp-1.6.2^0
16 source=("git+https://gitlab.gnome.org/GNOME/gssdp.git#commit=$_commit")
21 git describe --tags | sed 's/^gssdp-//;s/[^-]*-g/r&/;s/-/+/g'
29 arch-meson gssdp build -D gtk_doc=true
30 meson compile -C build
34 meson test -C build --print-errorlogs
38 local p="$1" f d; shift
40 d="$srcdir/$p/${f#$pkgdir/}"
41 mkdir -p "$(dirname "$d")"
43 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
48 depends+=(libg{lib,object,io}-2.0.so libsoup-3.0.so)
49 optdepends=('gtk4: gssdp-device-sniffer')
50 provides=(libgssdp-1.6.so)
52 meson install -C build --destdir "$pkgdir"
55 _pick docs usr/share/doc
58 package_gssdp-docs() {
59 pkgdesc+=" (documentation)"
64 # vim:set sw=2 sts=-1 et: