mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
67 lines
1.5 KiB
Bash
67 lines
1.5 KiB
Bash
# 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
|
|
pkgname=(gssdp gssdp-docs)
|
|
pkgver=1.6.2
|
|
pkgrel=1
|
|
pkgdesc="A GObject-based API for handling resource discovery and announcement over SSDP"
|
|
url="https://wiki.gnome.org/Projects/GUPnP"
|
|
arch=(x86_64)
|
|
license=(LGPL)
|
|
depends=(glib2 libsoup3)
|
|
makedepends=(gobject-introspection gi-docgen vala meson git gtk4)
|
|
options=(debug)
|
|
_commit=c2d417d6a79f03c095e5730efd60015eb3109a82 # tags/gssdp-1.6.2^0
|
|
source=("git+https://gitlab.gnome.org/GNOME/gssdp.git#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd gssdp
|
|
git describe --tags | sed 's/^gssdp-//;s/[^-]*-g/r&/;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd gssdp
|
|
}
|
|
|
|
build() {
|
|
arch-meson gssdp build -D gtk_doc=true -D manpages=false
|
|
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() {
|
|
depends+=(libg{lib,object,io}-2.0.so libsoup-3.0.so)
|
|
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:
|