aboutsummaryrefslogtreecommitdiffstats
path: root/community/glib-networking/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-07-17 08:40:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-17 08:44:05 +0000
commit2025b8b36733a490b2a96ec6d49874d0275bf97f (patch)
treec1bb60cf4409c3870527513d2b1ec36c441b9ed5 /community/glib-networking/APKBUILD
parent5c0563d9b61e3239c37147f4656ca8586e6512f3 (diff)
downloadaports-2025b8b36733a490b2a96ec6d49874d0275bf97f.tar.bz2
aports-2025b8b36733a490b2a96ec6d49874d0275bf97f.tar.xz
main/glib-networking: move to community
Diffstat (limited to 'community/glib-networking/APKBUILD')
-rw-r--r--community/glib-networking/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/glib-networking/APKBUILD b/community/glib-networking/APKBUILD
new file mode 100644
index 0000000000..99f89913f7
--- /dev/null
+++ b/community/glib-networking/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=glib-networking
+pkgver=2.54.1
+_maj=${pkgver%%.*}
+_min=${pkgver#${_maj}.}
+_min=${_min%%.*}
+_ver=$_maj.$_min
+pkgrel=1
+pkgdesc="Networking support for GLib"
+url="http://www.gnome.org"
+arch="all"
+license="LGPL-2.0-or-later"
+depends="ca-certificates"
+makedepends="glib-dev gnutls-dev libproxy-dev intltool libgcrypt-dev bash p11-kit-dev"
+install=
+subpackages="$pkgname-lang"
+source="http://download.gnome.org/sources/glib-networking/$_ver/glib-networking-$pkgver.tar.xz"
+options="!check"
+
+build() {
+ cd "$builddir"
+ CONFIG_SHELL=/bin/bash ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --disable-more-warnings \
+ --with-libproxy \
+ --with-gnutls
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ rm -f "$pkgdir"/usr/lib/gio/modules/*.a
+}
+
+sha512sums="8356d835914e33df43f4f2bb6a915ddcd48dd0565e4d5bc1f1d692e9c3124ee4421b99f87f2586f74e9fed24ef7421159f3242fd1eb7bd74950bd25e860896ec glib-networking-2.54.1.tar.xz"