aboutsummaryrefslogtreecommitdiffstats
path: root/main/glib-networking/APKBUILD
blob: 2352e34996140b22d34609b96106d3c553b3e707 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glib-networking
pkgver=2.46.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
}

md5sums="d418e2ba2acffacf90a2b0259c7993e1  glib-networking-2.46.0.tar.xz"
sha256sums="3655526d6dbfc697c22cd9b279e14599f8449f5802b12d84485bdc52d96482f0  glib-networking-2.46.0.tar.xz"
sha512sums="34fc7cda961905cc923597e5bc99637610b721d631228937437abc8e389caa33dd8f9ff96579fe6286ec5000fe8f70c4d930fdb591b6b31d67b4eadda464902f  glib-networking-2.46.0.tar.xz"