# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=glib-networking
pkgver=2.60.3
_ver=${pkgver%.*}
pkgrel=0
pkgdesc="Networking support for GLib"
url="https://www.gnome.org/"
arch="all"
license="LGPL-2.1+"
depends="ca-certificates"
makedepends="bash glib-dev gnutls-dev gsettings-desktop-schemas-dev intltool
	libgcrypt-dev libproxy-dev meson ninja p11-kit-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/glib-networking/$_ver/glib-networking-$pkgver.tar.xz"

prepare() {
	default_prepare
}

build() {
	meson -Dprefix=/usr _build
	ninja -C _build
}

check() {
	ninja -C _build test
}

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

sha512sums="06a50aee1a563f5e992549e963d3980b02c9068976a244ce4a84eb0aca064b2ab7e8d50e3ef26dbd0d8d5edbddc82c5ce83d4a93bfaa0822b79465f0d3b8609f  glib-networking-2.60.3.tar.xz"