archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libupnp / repos / extra-x86_64 / PKGBUILD
blob27aea02ee1b8724f997461fe3bb6752fb32ce7d4
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
4 # Contributor: kastor <kastor@fobos.org.ar>
6 _name=pupnp
7 pkgname=libupnp
8 pkgver=1.14.17
9 pkgrel=1
10 pkgdesc='Portable Open Source UPnP Development Kit'
11 arch=(x86_64)
12 url="https://pupnp.sourceforge.io/"
13 license=(BSD)
14 depends=(glibc)
15 makedepends=(cmake)
16 provides=(
17   libixml.so
18   libupnp.so
20 source=(https://github.com/$_name/$_name/archive/release-$pkgver/$_name-release-$pkgver.tar.gz)
21 sha512sums=('d9af7231687bb694961822a9d3b1e9b04e52142f0245729902b240564579903858e01a5cfe53ff7a8fa77e44e36b840f0c355d2c79aaf0ced2498b4b1822ed6b')
22 b2sums=('8bb38dbdff59cf4fd6c222cf1000ecc195f8d33601d8c06476b0a238d6969fe695bcb52f721e4d88a95fa63ef568881e1628935c3b5ba063b72a3b3ee27ded8b')
24 build() {
25   local cmake_options=(
26     -B build
27     -D CMAKE_BUILD_TYPE=None
28     -D CMAKE_INSTALL_PREFIX=/usr
29     -D UPNP_BUILD_STATIC=OFF
30     -D blocking_tcp_connections=OFF
31     -D reuseaddr=ON
32     -S $_name-release-$pkgver
33     -W no-dev
34   )
36   cmake "${cmake_options[@]}"
37   cmake --build build --verbose
40 check() {
41   ctest --test-dir build --output-on-failure
44 package() {
45   DESTDIR="$pkgdir" cmake --install build
46   install -vDm 644 $_name-release-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
47   install -vDm 644 $_name-release-$pkgver/{ChangeLog,README.md} -t "$pkgdir/usr/share/doc/$pkgname"
50 # vim: ts=2 sw=2 et: