# Maintainer: hoellen <dev@hoellen.eu>
pkgname=nqptp
pkgver=0.1
pkgrel=0
pkgdesc="Not Quite PTP. A daemon that monitors timing data from any PTP clocks."
url="https://github.com/mikebrady/nqptp"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf automake libtool git"
subpackages="$pkgname-openrc"
source="$pkgname.initd"
options=!check

builddir="$srcdir/$pkgname"

prepare() {
	git clone $url $builddir
	cd $builddir
	default_prepare
	autoreconf -i -f
}

build() {
	./configure --prefix=/usr --localstatedir=/var
	make
}

package() {
	cd $builddir
	make DESTDIR="$pkgdir" install
	install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}


sha512sums="8af548879c307a67c818377a4e18f7c6f3ad824f56c5d8d8be15598c816e2e2160cfcecde5953253deb5b3001bb2637261ef05499cb9d64a08e64c381ef82916  nqptp.initd"