aboutsummaryrefslogtreecommitdiffstats
path: root/community/libupnp/APKBUILD
blob: 5b32de98a8b4db951aee1dbfd624d1f7ec76963a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Mike Crute <mike@crute.us>
pkgname=libupnp
pkgver=1.14.6
pkgrel=0
pkgdesc="Portable Open Source UPnP Development Kit"
url="http://pupnp.sourceforge.net"
arch="all"
license="BSD-3-Clause"
makedepends="automake autoconf libtool"
subpackages="$pkgname-dev"
source="https://github.com/pupnp/pupnp/releases/download/release-$pkgver/libupnp-$pkgver.tar.bz2"

# secfixes:
#   1.12.1-r1:
#     - CVE-2020-13848

prepare() {
	default_prepare
	autoreconf
}

build() {
	./configure \
		--prefix=/usr \
		--enable-ipv6 \
		--enable-static=no \
		--enable-reuseaddr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="9275e23e3ca2eebc59204b5ea8a16e520c01e10d84a42b1dd9f819139afbd44cfc3de7b740f50a5c514d35f778089cd653e0de3914e5b43b9332e846d121abce  libupnp-1.14.6.tar.bz2"