summaryrefslogtreecommitdiff
path: root/community/libsoup/APKBUILD
blob: cf7ace18524a04d17f1b772fcdef13827182c1d2 (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
42
43
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libsoup
pkgver=2.74.2
pkgrel=0
pkgdesc="Gnome HTTP client/server Library"
url="https://wiki.gnome.org/Projects/libsoup"
arch="all"
options="!check" # Wants to bind to ports, which doesn't work in our environment
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-lang $pkgname-dbg"
depends="glib-networking gsettings-desktop-schemas"
makedepends="libgcrypt-dev libgpg-error-dev zlib-dev meson
	gobject-introspection-dev vala libxml2-dev libpsl-dev sqlite-dev
	brotli>=1.0.9-r1"
source="https://download.gnome.org/sources/libsoup/${pkgver%.*}/libsoup-$pkgver.tar.xz"

# secfixes:
#   2.68.2-r0:
#     - CVE-2019-17266
#   2.58.2-r0:
#     - CVE-2017-2885

build() {
	abuild-meson \
		-Dtls_check=false \
		-Dintrospection=enabled \
		-Dvapi=enabled \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

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

sha512sums="
6f9da3296364e210103093cef9ef34fb40f694a8ef90966fc1fbd834c11f3db1031784a0901e9181bf3124e0682708148bd3598a31d60f1cce61eaae2e19ba7a  libsoup-2.74.2.tar.xz
"