OCaml 4.14.0 rebuild: ocaml-ctypes 0.20.1-1
[arch-packages.git] / libupnp / trunk / PKGBUILD
blobd532326e0e49d7c3bb5aa915ef03382a8cd88aba
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.13
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=(libixml.so libupnp.so)
17 options=(debug)
18 source=($pkgname-$pkgver.tar.gz::https://github.com/$_name/$_name/archive/release-$pkgver.tar.gz)
19 sha512sums=('ae6ae72a5e784a0f9508af94c4070627e791660fa37966e9825643fd0f88b171826bda9a2ec872d4961bf3454e5a9cd716127f0bdf6e63c789c4e22aab0b7e71')
20 b2sums=('af3cd6c852297d7b131b2deefba8a72427e225c765017edb5f927b81bd1ce2b72d43caf2c46bd383b83536ba858d52dc8d051e272dacc8bd3c952e43443650a4')
22 build() {
23   cmake -DCMAKE_INSTALL_PREFIX=/usr \
24         -DCMAKE_BUILD_TYPE=None \
25         -DUPNP_BUILD_STATIC=OFF \
26         -Dblocking_tcp_connections=OFF \
27         -Dreuseaddr=ON \
28         -Wno-dev \
29         -B build \
30         -S $_name-release-$pkgver
31   make VERBOSE=1 -C build
34 check() {
35   make VERBOSE=1 test -C build
38 package() {
39   make VERBOSE=1 DESTDIR="$pkgdir" install -C build
40   install -vDm 644 $_name-release-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
41   install -vDm 644 $_name-release-$pkgver/{ChangeLog,README.md} -t "$pkgdir/usr/share/doc/$pkgname"
44 # vim: ts=2 sw=2 et: