aboutsummaryrefslogtreecommitdiffstats
path: root/main/lksctp-tools/APKBUILD
blob: 9bde8840d2a338b1df6ac2966a95eb27aa3c89c5 (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
44
45
46
# 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"
license="GPLv2 and GPLv2+ and LGPLv2 and MIT"
depends=""
depends_dev=""
makedepends="$depends_dev libtool automake autoconf linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/lksctp/lksctp-tools-$pkgver.tar.gz"

_builddir="$srcdir"/lksctp-tools-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	if ! [ -e configure ]; then
		./bootstrap
	fi
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-static \
		|| return 1
	make

}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="68e9b8fa4d4e331029b247b72d46d7a5  lksctp-tools-1.0.17.tar.gz"
sha256sums="1aeb204cdb2befc94d9eb3037d1609c9d1d2cd5379d6dd2c0a8ca9b10533aa15  lksctp-tools-1.0.17.tar.gz"
sha512sums="055719130b7dda4da9cf002dcd5f1fb3d8cf75300a99365976e087b2b6971b4ccd357f95b515a44e37874af161f7b7f9b42c60191aff938d18fada5a49aa44c4  lksctp-tools-1.0.17.tar.gz"