aboutsummaryrefslogtreecommitdiffstats
path: root/main/glib-networking
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-05-23 16:06:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-05-23 16:10:19 +0000
commit5ba63f2ff6479118cc40337badd8262d0bdd83eb (patch)
treed85097d0119e70bf093a33261b5a44b93acc2011 /main/glib-networking
parent1febde356b017cfb19c87e59432bc956c2c76e52 (diff)
downloadaports-5ba63f2ff6479118cc40337badd8262d0bdd83eb.tar.bz2
aports-5ba63f2ff6479118cc40337badd8262d0bdd83eb.tar.xz
main/glib-networking: new aport
needed by libsoup nowdays
Diffstat (limited to 'main/glib-networking')
-rw-r--r--main/glib-networking/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/glib-networking/APKBUILD b/main/glib-networking/APKBUILD
new file mode 100644
index 0000000000..6aa3b4d6eb
--- /dev/null
+++ b/main/glib-networking/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=glib-networking
+pkgver=2.28.6.1
+_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"
+makedepends="$depends_dev bash"
+install=
+subpackages=
+source="http://download.gnome.org/sources/glib-networking/$_ver/glib-networking-$pkgver.tar.bz2"
+
+_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 --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="d7d99c1f993398f06818a88ada04bcce glib-networking-2.28.6.1.tar.bz2"