aboutsummaryrefslogtreecommitdiffstats
path: root/community/libslirp/APKBUILD
blob: 95c5bfe121ea852d076cc491b4f84dfed9d19456 (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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=libslirp
pkgver=4.6.1
pkgrel=0
pkgdesc="A general purpose TCP-IP emulator"
url="https://gitlab.freedesktop.org/slirp/libslirp"
arch="all"
license="BSD-3-Clause"
makedepends="meson glib-dev"
subpackages="$pkgname-dev"
options="!check" # no test suite
source="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v$pkgver/libslirp-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

# secfixes:
#   4.6.0-r0:
#     - CVE-2021-3592
#     - CVE-2021-3593
#     - CVE-2021-3594
#     - CVE-2021-3595
#   4.4.0-r0:
#     - CVE-2020-29129
#     - CVE-2020-29130
#   4.3.1-r0:
#     - CVE-2020-10756
#   4.3.0-r0:
#     - CVE-2020-1983

build() {
	abuild-meson build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
04a9dd88cd58c849a24b9cff405d951952760d99ea2bef0b070463dff088d79f44557a13c9427ba0043f58d4b9e06b68ff64a4f23a7b0d66df594e32e1521cae  libslirp-v4.6.1.tar.gz
"