# Contributor:
# Maintainer:
pkgname=ntpsec
pkgver=1.0.0
pkgrel=0
pkgdesc="NTP reference implementation, refactored for security"
url="https://www.ntpsec.org/"
arch="all"
license="BSD-2-Clause"
depends="python3"
makedepends="python3-dev python2 bison asciidoc libressl-dev linux-headers"
subpackages="$pkgname-doc"
source="https://ftp.ntpsec.org/pub/releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./waf configure \
		--prefix=/usr \
		--python=/usr/bin/python3 \
		--enable-mssntp \
		--refclock=all

	./waf build --verbose
}

check() {
	cd "$builddir"
	./waf check --verbose
}

package() {
	cd "$builddir"
	./waf install --destdir="$pkgdir"
}

sha512sums="9fb06310508b30d2ae2d66212d7d87b00e8eea294cebc27eb70435d764bd639fcec234b66e78deafb700476c88e47afe2d1b463563008c32efbb0644dd611f43  ntpsec-1.0.0.tar.gz"
