# Maintainer: Francesco Colista # Contributor: Francesco Colista # Contributor: Mike Crute pkgname=libupnp pkgver=1.14.17 pkgrel=0 pkgdesc="Portable Open Source UPnP Development Kit" url="https://pupnp.github.io/pupnp/" arch="all" license="BSD-3-Clause" makedepends="cmake samurai" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/pupnp/pupnp/archive/refs/tags/release-$pkgver.tar.gz disable-failing-test.patch" builddir="$srcdir"/pupnp-release-$pkgver # secfixes: # 1.12.1-r1: # - CVE-2020-13848 build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -Dblocking_tcp_connections=OFF \ -Dreuseaddr=ON \ -Dsamples=OFF cmake --build build } check() { cmake --build build --target test } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums=" d9af7231687bb694961822a9d3b1e9b04e52142f0245729902b240564579903858e01a5cfe53ff7a8fa77e44e36b840f0c355d2c79aaf0ced2498b4b1822ed6b libupnp-1.14.17.tar.gz f5890d2c1a3540fd1717eb038d1c4fc361b04e5a13be37d4f0ecbc574651b054b7326160c9399c6f7a4ce631c6ab912151d49a724615ee8f87138e4c0da9af0a disable-failing-test.patch "