2022-11-27 22:17:15 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
|
|
# Contributor: György Balló <ballogy@freestart.hu>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - removed makedepends on pandoc, set -D manpages=false
|
|
|
|
|
|
|
|
pkgbase=gssdp
|
2023-11-03 00:11:49 +00:00
|
|
|
pkgname=(
|
|
|
|
gssdp
|
|
|
|
gssdp-docs
|
|
|
|
)
|
|
|
|
pkgver=1.6.3
|
2022-11-27 22:17:15 +00:00
|
|
|
pkgrel=1
|
2023-11-03 00:11:49 +00:00
|
|
|
pkgdesc="GObject-based API for handling resource discovery and announcement over SSDP"
|
2022-11-27 22:17:15 +00:00
|
|
|
url="https://wiki.gnome.org/Projects/GUPnP"
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(LGPL)
|
2023-11-03 00:11:49 +00:00
|
|
|
depends=(
|
|
|
|
glib2
|
|
|
|
libsoup3
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
gi-docgen
|
|
|
|
git
|
|
|
|
gobject-introspection
|
|
|
|
gtk4
|
|
|
|
meson
|
|
|
|
vala
|
|
|
|
)
|
|
|
|
_commit=28c388aa45698dcc09ba24e8de849653e9eedf8c # tags/gssdp-1.6.3^0
|
2022-11-27 22:17:15 +00:00
|
|
|
source=("git+https://gitlab.gnome.org/GNOME/gssdp.git#commit=$_commit")
|
2023-11-03 00:11:49 +00:00
|
|
|
b2sums=('SKIP')
|
2022-11-27 22:17:15 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd gssdp
|
|
|
|
git describe --tags | sed 's/^gssdp-//;s/[^-]*-g/r&/;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd gssdp
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-11-03 00:11:49 +00:00
|
|
|
local meson_options=(
|
|
|
|
-D gtk_doc=true
|
|
|
|
-D manpages=false
|
|
|
|
)
|
|
|
|
|
|
|
|
arch-meson gssdp build "${meson_options[@]}"
|
2022-11-27 22:17:15 +00:00
|
|
|
meson compile -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
meson test -C build --print-errorlogs
|
|
|
|
}
|
|
|
|
|
|
|
|
_pick() {
|
|
|
|
local p="$1" f d; shift
|
|
|
|
for f; do
|
|
|
|
d="$srcdir/$p/${f#$pkgdir/}"
|
|
|
|
mkdir -p "$(dirname "$d")"
|
|
|
|
mv "$f" "$d"
|
|
|
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package_gssdp() {
|
2023-11-03 00:11:49 +00:00
|
|
|
depends+=(
|
|
|
|
libg{lib,object,io}-2.0.so
|
|
|
|
libsoup-3.0.so
|
|
|
|
)
|
2022-11-27 22:17:15 +00:00
|
|
|
optdepends=('gtk4: gssdp-device-sniffer')
|
|
|
|
provides=(libgssdp-1.6.so)
|
|
|
|
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
|
|
|
|
|
|
cd "$pkgdir"
|
|
|
|
_pick docs usr/share/doc
|
|
|
|
}
|
|
|
|
|
|
|
|
package_gssdp-docs() {
|
|
|
|
pkgdesc+=" (documentation)"
|
|
|
|
depends=()
|
|
|
|
mv docs/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set sw=2 sts=-1 et:
|