summaryrefslogtreecommitdiffstats
path: root/main/glib-networking/APKBUILD
blob: 3f141916ec0d73ace27b1e7299ee166483592521 (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
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"