PKGBUILDs/extra/gssdp/PKGBUILD

88 lines
1.7 KiB
Bash
Raw Normal View History

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
2024-09-23 19:30:16 +00:00
pkgrel=2
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)
2024-09-23 19:30:16 +00:00
license=(LGPL-2.1-or-later)
2023-11-03 00:11:49 +00:00
depends=(
2024-09-23 19:30:16 +00:00
gcc-libs
2023-11-03 00:11:49 +00:00
glib2
2024-09-23 19:30:16 +00:00
glibc
2023-11-03 00:11:49 +00:00
libsoup3
)
makedepends=(
gi-docgen
git
2024-09-23 19:30:16 +00:00
glib2-devel
2023-11-03 00:11:49 +00:00
gobject-introspection
gtk4
meson
vala
)
2024-09-23 19:30:16 +00:00
source=("git+https://gitlab.gnome.org/GNOME/gssdp.git?signed#tag=gssdp-$pkgver")
b2sums=('b92fd3945674b65f158d9e4b6c384580a8c13d97bdb4bab86895a458e54e79f7d0186b2dc3615a52ac8f029709c7877346a59863d4f26d06cc5fd4358025e1dc')
validpgpkeys=(
AC9CD4E32D7C7F6357BA8ADD10F6E970175D29E1 # Jens Georg <mail@jensge.org>
)
2022-11-27 22:17:15 +00:00
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: