aboutsummaryrefslogtreecommitdiffstats
path: root/community/libupnp/APKBUILD
blob: 1edd01e2849ca8e28835f5759e28d8bd17e002e5 (plain)
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.2
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="80a0e88964e763fa7b486fd0630d1ac093dfca59a2243600cb126e40c2b69131aaa3428f837a9598eb5c59a0d04da2b29a820350d2833ae777db3b8897f6384a  libupnp-1.14.2.tar.bz2"