summaryrefslogtreecommitdiffstats
path: root/main/lksctp-tools/APKBUILD
blob: e41250872a18e0daf0d1a14725859b6047e77cf7 (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
47
48
49
50
51
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lksctp-tools
pkgver=1.0.16
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"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/lksctp/lksctp-tools-$pkgver.tar.gz
	musl.patch"

_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
	rm "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/lksctp-tools/*.la
}

md5sums="708bb0b5a6806ad6e8d13c55b067518e  lksctp-tools-1.0.16.tar.gz
446284745da795d9680d3a1d9b78ede4  musl.patch"
sha256sums="0903dd526b7f30a89d5031aa2c82757612becc38ed7bc6e4f972f8deae351f26  lksctp-tools-1.0.16.tar.gz
5c5a340f69a44593e8b24544991d5c8c9efd8320d7ac9c2131265f15910e0e82  musl.patch"
sha512sums="ea771f3ffeef4630638ee9cbdf01723d01b1b0ca2e8f147a2b61b907339bd1a0c5d621a58638a3b700b6ffc41de06c7b9002645254a471e279663b64b313f467  lksctp-tools-1.0.16.tar.gz
8c837c7e1e825f5e1ae26c5dc622d2803f5421efaf65add5b56f9c383d3505c8654ebf1ba7d18ee0dba512a2a96137060bac6de55abb2604162a9087bbd4db94  musl.patch"