aboutsummaryrefslogtreecommitdiffstats
path: root/main/lksctp-tools/APKBUILD
blob: 9398f98bd11c116280105ab66884e3a2c46269b9 (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
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lksctp-tools
pkgver=1.0.17
pkgrel=0
pkgdesc="User-space access to Linux Kernel SCTP"
url="http://lksctp.sourceforge.net"
arch="all"
options="!check"  # sctp_connectx in v4test fails on kernel 4.14
license="GPL-2.0 and GPL-2.0-or-later and LGPL-2.0 and MIT"
depends=""
makedepends="libtool automake autoconf linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/lksctp/lksctp-tools-$pkgver.tar.gz"

prepare() {
	cd "$builddir"
	default_prepare
	if ! [ -e configure ]; then
		./bootstrap
	fi
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	cd "$builddir"/src/func_tests
	make v4test
	make v6test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="055719130b7dda4da9cf002dcd5f1fb3d8cf75300a99365976e087b2b6971b4ccd357f95b515a44e37874af161f7b7f9b42c60191aff938d18fada5a49aa44c4  lksctp-tools-1.0.17.tar.gz"