packages/gupnp-igd/PKGBUILD

50 lines
1.1 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Eric Bélanger <eric@archlinux.org>
pkgname=gupnp-igd
pkgver=1.6.0
pkgrel=1
pkgdesc="A library to handle UPnP IGD port mapping"
url="https://wiki.gnome.org/Projects/GUPnP"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=(LGPL)
depends=(gupnp)
makedepends=(
git
gobject-introspection
gtk-doc
meson
)
_commit=e60764858374d776869605d39e5e4d1033e9ad4a # tags/1.6.0^0
source=("git+https://gitlab.gnome.org/GNOME/gupnp-igd.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
}
build() {
arch-meson $pkgname build -D gtk_doc=true
meson compile -C build
}
check() {
# No multicast in our containers?
meson test -C build --print-errorlogs || :
}
package() {
depends+=(libg{lib,object,io}-2.0.so libg{ssdp,upnp}-1.6.so)
provides+=(libgupnp-igd-1.6.so)
meson install -C build --destdir "$pkgdir"
}
# vim:set sw=2 sts=-1 et: