# Maintainer: Natanael Copa pkgname=lksctp-tools pkgver=1.0.15 pkgrel=1 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="d829677541fb41061e7f4d61f8413b07 lksctp-tools-1.0.15.tar.gz 446284745da795d9680d3a1d9b78ede4 musl.patch" sha256sums="5ef2330c8dc6bc454c26f6e9fb53bbe5a6a8372740aebd1be8c326b526106e78 lksctp-tools-1.0.15.tar.gz 5c5a340f69a44593e8b24544991d5c8c9efd8320d7ac9c2131265f15910e0e82 musl.patch" sha512sums="ecf04e28c0517bf4c083af6474ee66dac75e672edd95d975755c0e1cf7e8d3d1353254c7b73054c56746564a6c7f164859fab4ead46f9084f70d34272e2aaa59 lksctp-tools-1.0.15.tar.gz 8c837c7e1e825f5e1ae26c5dc622d2803f5421efaf65add5b56f9c383d3505c8654ebf1ba7d18ee0dba512a2a96137060bac6de55abb2604162a9087bbd4db94 musl.patch"