name=libndp
version=1.9
release=1
desc="IPv6 Neighbor Discovery Protocol library"
url="https://github.com/jpirko/libndp"
license="LGPL-2.1-or-later"
depend="glibc"
makedepend=""
source="https://github.com/jpirko/libndp/archive/refs/tags/v1.9.tar.gz"
sha256="SKIP"

build() {
	cd "libndp-1.9"
	[ -x ./configure ] || autoreconf -fi
	_opts="--prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib"
	_help=$(./configure --help 2>/dev/null)
	case "$_help" in *--disable-static*)  _opts="$_opts --disable-static" ;; esac
	case "$_help" in *--disable-nls*)     _opts="$_opts --disable-nls" ;; esac
	./configure $_opts
	make -j"$JOBS"
}

package() {
	cd "libndp-1.9"
	make DESTDIR="$pkgdir" install
}
