# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=glib-networking pkgver=2.36.2 _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" update_config_sub || return 1 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 \ --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="fb9121742ed36d1723f296eea19dbb3c glib-networking-2.36.2.tar.xz" sha256sums="2108d55b0af3eea56ce256830bcaf1519d6337e0054ef2eff80f2c0ef0eb23f9 glib-networking-2.36.2.tar.xz" sha512sums="077c8d821ff3942b7ddad51b4045a6a9aa05b50da58f5446ee2e536dbdffa81018141feea9e793da7b031a2991c6e4ccc66e524d288ab9e85603daa895283536 glib-networking-2.36.2.tar.xz"