summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Perez de Castro2016-07-07 19:56:48 +0300
committerAdrian Perez de Castro2016-07-07 19:58:41 +0300
commitf6d3f1be906e94e8a2094f802e3b514b8a988b39 (patch)
tree019b6ee736cf5bf3f67ba4ad6be885d9211c8ae6
downloadaur-libusrsctp.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f2076fb9776
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = libusrsctp
+ pkgdesc = A portable SCTP userland stack
+ pkgver = 0.9.3.0
+ pkgrel = 1
+ url = https://github.com/sctplab/usrsctp
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = automake
+ makedepends = autoconf
+ depends = glibc
+ provides = libusrsctp-git
+ conflicts = libusrsctp-git
+ source = https://github.com/sctplab/usrsctp/archive/0.9.3.0.tar.gz
+ sha512sums = ef9c6361ad0183f887666883f9fc8911267797c3a7a9f03712249db350b3602eda70b60bbf93eabcf46049dd922e18ffa7ea6f49a69490ef2b815e812dfbbefb
+
+pkgname = libusrsctp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..066a4401b22
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
+pkgname=libusrsctp
+pkgver='0.9.3.0'
+pkgrel=1
+pkgdesc="A portable SCTP userland stack"
+arch=('i686' 'x86_64')
+url="https://github.com/sctplab/usrsctp"
+license=('custom')
+depends=('glibc')
+makedepends=('automake' 'autoconf')
+conflicts=('libusrsctp-git')
+provides=('libusrsctp-git')
+source=("${url}/archive/${pkgver}.tar.gz")
+sha512sums=('ef9c6361ad0183f887666883f9fc8911267797c3a7a9f03712249db350b3602eda70b60bbf93eabcf46049dd922e18ffa7ea6f49a69490ef2b815e812dfbbefb')
+
+_EXTRA_FLAGS='-Wno-error=unused-but-set-variable'
+
+build() {
+ cd ${pkgname#lib}-${pkgver}
+ ./bootstrap
+
+ eval "$(sed -e '/^CFLAGS=/p' -e d /etc/makepkg.conf)"
+ eval "$(sed -e '/^CXXFLAGS=/p' -e d /etc/makepkg.conf)"
+ eval "$(sed -e '/^LDFLAGS=/p' -e d /etc/makepkg.conf)"
+
+ export CFLAGS="${CFLAGS} ${_EXTRA_FLAGS}"
+ export CXXFLAGS="${CXXFLAGS} ${_EXTRA_FLAGS}"
+ ./configure --prefix=/usr --disable-debug
+
+ make
+}
+
+package() {
+ cd ${pkgname#lib}-${pkgver}
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}