aboutsummaryrefslogtreecommitdiffstats
path: root/community/glib-networking/APKBUILD
blob: 77f47d06b430617e6eddeabd37b4265ab348944f (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glib-networking
pkgver=2.56.1
_maj=${pkgver%%.*}
_min=${pkgver#${_maj}.}
_min=${_min%%.*}
_ver=$_maj.$_min
pkgrel=0
pkgdesc="Networking support for GLib"
url="http://www.gnome.org"
arch="all"
license="LGPL-2.0-or-later"
depends="ca-certificates"
makedepends="glib-dev gnutls-dev libproxy-dev intltool libgcrypt-dev bash
	p11-kit-dev meson gsettings-desktop-schemas-dev"
install=
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/glib-networking/$_ver/glib-networking-$pkgver.tar.xz"
options="!check"

build() {
	cd "$builddir"
	meson \
		--buildtype=release \
		--prefix=/usr \
		--default-library=shared \
		. build
	ninja -C "$builddir"/build
}

check() {
	ninja -C "$builddir"/build test
}

package() {
	DESTDIR="$pkgdir" ninja -C "$builddir"/build install
	rm -f "$pkgdir"/usr/lib/gio/modules/*.a
}

sha512sums="474d3e334b901c7445a2ee38018a23bbf0a1f4f7403952bf0e1c882f5c9a518b11696d0c69695b3cb378e33e15f619414e46733172ff6564732b96f3c375003d  glib-networking-2.56.1.tar.xz"