# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=glib-networking pkgver=2.40.0 _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="LGPLv2+" depends="ca-certificates" depends_dev="glib-dev gnutls-dev libproxy-dev intltool libgcrypt-dev" makedepends="$depends_dev bash p11-kit-dev" install= subpackages="$pkgname-lang" source="http://download.gnome.org/sources/glib-networking/$_ver/glib-networking-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" CONFIG_SHELL=/bin/bash ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-more-warnings \ --with-libproxy \ --with-gnutls \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/gio/modules/*.a \ "$pkgdir"/usr/lib/gio/modules/*.la } md5sums="94a1ceb1dc50adcc29b1ebba919c87a1 glib-networking-2.40.0.tar.xz" sha256sums="54e9c2d81171353794d2d2113e1311dfafd889f10993099e447b431c4e800aa4 glib-networking-2.40.0.tar.xz" sha512sums="474e16e4828557c5af6609ed3b0c6e644ae075e99fdc2f832ec5f4787dd9b51c0d4526317ec813ead44bf4e7cb93104f6fa742e51458b35a84278c70b2e4f671 glib-networking-2.40.0.tar.xz"