diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-05 19:01:02 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-07 08:21:06 +0000 |
commit | 1015776ffa27caf633aee90996dee62820b0bf46 (patch) | |
tree | b965f8a30993d60559f3edbf7875e144fd3e4d7d /main/glib-networking | |
parent | e13dda619d82d5f2cfc7ccc1e804e5effaf9b8f4 (diff) | |
download | aports-1015776ffa27caf633aee90996dee62820b0bf46.tar.bz2 aports-1015776ffa27caf633aee90996dee62820b0bf46.tar.xz |
main/glib-networking: modernise, add test suite
Diffstat (limited to 'main/glib-networking')
-rw-r--r-- | main/glib-networking/APKBUILD | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/main/glib-networking/APKBUILD b/main/glib-networking/APKBUILD index 8fb6c60e51..d05a6f5aef 100644 --- a/main/glib-networking/APKBUILD +++ b/main/glib-networking/APKBUILD @@ -6,45 +6,37 @@ _maj=${pkgver%%.*} _min=${pkgver#${_maj}.} _min=${_min%%.*} _ver=$_maj.$_min -pkgrel=0 +pkgrel=1 pkgdesc="Networking support for GLib" url="http://www.gnome.org" arch="all" license="LGPL-2.0-or-later" depends="ca-certificates" -depends_dev="glib-dev gnutls-dev libproxy-dev intltool libgcrypt-dev" -makedepends="$depends_dev bash p11-kit-dev" +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" -_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" + 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 + --with-gnutls + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/gio/modules/*.a } |