# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=pps-tools
pkgver=1.0.3
pkgrel=0
pkgdesc="User-space tools for LinuxPPS"
url="https://github.com/redlab-i/pps-tools"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test suite
makedepends="linux-headers"
subpackages="$pkgname-dev"
source="pps-tools-v$pkgver.tar.gz::https://github.com/redlab-i/pps-tools/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make
}

package() {
	mkdir -p "$pkgdir/usr/bin/" "$pkgdir/usr/include/sys/"
	make DESTDIR="$pkgdir" install
}

sha512sums="
0906180a95346f315e784c7e28e1b5efc2a70a76b7489337a5fc215d174eac37ba58bdc1bc96fe2a0f9083334ed96b9b09ade2a252652095bab7ced5504deeea  pps-tools-v1.0.3.tar.gz
"
