summaryrefslogtreecommitdiff
path: root/repo/libusrsctp/libusrsctp.xibuild
blob: 0c7947f7872533d65813ce8b061039c754914c4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

NAME="libusrsctp"
DESC="Portable SCTP userland stack"

MAKEDEPS="automake autoconf libtool"

PKG_VER=
_commit=81049b90f5703b89154a7dc06cf13f9b01811e06
SOURCE="https://github.com/sctplab/usrsctp/archive/$_commit.tar.gz"

prepare() {
	./bootstrap
}

build() {
	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() {
	make DESTDIR="$PKG_DEST" install
}