diff options
-rw-r--r-- | user/libnice/APKBUILD | 43 | ||||
-rw-r--r-- | user/libnice/dont-error-on-socket-close.patch | 11 |
2 files changed, 54 insertions, 0 deletions
diff --git a/user/libnice/APKBUILD b/user/libnice/APKBUILD new file mode 100644 index 000000000..15c544c34 --- /dev/null +++ b/user/libnice/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=libnice +pkgver=0.1.15 +pkgrel=0 +pkgdesc="GLib-based Interactive Connectivity Establishment (ICE) library" +url="https://nice.freedesktop.org/wiki/" +arch="all" +license="MPL-1.1 AND LGPL-2.1-only" +depends="" +depends_dev="glib-dev" +makedepends="$depends_dev gobject-introspection-dev gstreamer-dev openssl-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://nice.freedesktop.org/releases/libnice-$pkgver.tar.gz + dont-error-on-socket-close.patch + " + +build() { + cd "$builddir" + LDFLAGS="-Wl,-z,stack-size=1048576" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-static + make +} + +check() { + cd "$builddir" + # multi-make causes test-drop-invalid test to fail + make -j1 check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="60a8bcca06c0ab300dfabbf13e45aeac2085d553c420c5cc4d2fdeb46b449b2b9c9aee8015b0662c16bd1cecf5a49824b7e24951a8a0b66a87074cb00a619c0c libnice-0.1.15.tar.gz +c81aff0f8a674315997f2ecc1f0cbc501b54d49c142949aee68af42aaccf2a2f61d5eb46ce8c123b05fb98c2cd5ef5751b9228783e5e221b12be06b805da0ad3 dont-error-on-socket-close.patch" diff --git a/user/libnice/dont-error-on-socket-close.patch b/user/libnice/dont-error-on-socket-close.patch new file mode 100644 index 000000000..458a86b02 --- /dev/null +++ b/user/libnice/dont-error-on-socket-close.patch @@ -0,0 +1,11 @@ +--- libnice-0.1.15/tests/test-pseudotcp.c.old 2018-10-21 07:25:59.000000000 +0000 ++++ libnice-0.1.15/tests/test-pseudotcp.c 2019-01-10 19:09:03.440000000 +0000 +@@ -161,7 +161,7 @@ + + static void closed (PseudoTcpSocket *sock, guint32 err, gpointer data) + { +- g_error ("Socket %p Closed : %d", sock, err); ++ g_debug ("Socket %p Closed : %d", sock, err); + } + + struct notify_data { |