Subject: [PATCH] testing/libusrsctp: new aport

From: Daniel Santana <[email-masked]>
Date: Wed, 29 Jan 2020 03:20:30 -0300

https://github.com/sctplab/usrsctp
Portable SCTP userland stack
---
 testing/libusrsctp/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 testing/libusrsctp/APKBUILD

diff --git a/testing/libusrsctp/APKBUILD b/testing/libusrsctp/APKBUILD
new file mode 100644
index 0000000000..73fd15f0a0
--- /dev/null
+++ b/testing/libusrsctp/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Daniel Santana <[email-masked]>
+# Maintainer: Daniel Santana <[email-masked]>
+pkgname=libusrsctp
+_pkgname=usrsctp
+pkgver=0.9.3.0_git20190127
+_commit=81049b90f5703b89154a7dc06cf13f9b01811e06
+pkgrel=0
+pkgdesc="Portable SCTP userland stack"
+url="https://github.com/sctplab/usrsctp"
+arch="all"
+options="!check"  # No test suite.
+license="BSD-3-Clause"
+makedepends="automake autoconf libtool"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/sctplab/usrsctp/archive/$_commit.tar.gz"
+builddir="$srcdir/$_pkgname-$_commit"
+
+prepare() {
+	cd "$builddir"
+	./bootstrap
+}
+
+build() {
+	cd "$builddir"
+	export CFLAGS="$CFLAGS -Wno-error=address-of-packed-member -Wno-error=cpp"
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="85017b9d250d7c9f86a3c65e36bd4613b7a4bd4d7c64a9b7f0022179b092b4487fea91b7ff6aee76dfdaaa9a11c3e26c92afc06d007899d44e53d182199f2338  libusrsctp-0.9.3.0_git20190127.tar.gz"
-- 
2.25.0