# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=ifupdown-ng-waitif
pkgver=0.2.0
pkgrel=0
pkgdesc="Executor for ifupdown-ng which blocks until the interface is running"
url="https://github.com/nmeum/ifupdown-ng-waitif"
arch="all"
license="GPL-3.0-or-later"
makedepends="libmnl-dev"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/nmeum/ifupdown-ng-waitif/archive/refs/tags/$pkgver.tar.gz"

build() {
	make RUNDIR=/var/run
}

package() {
	make DESTDIR="$pkgdir" \
		PREFIX=/usr \
		install
}

sha512sums="
33aab159ff0de11f24efe95ac3a1b29d3535370ff051ebc5433d5e18fb4a2a6fbe2616efd2dbd9ac9d45e1bbfee2f31a98f8ac9c16d3c5ab447b21e5e56a62fa  ifupdown-ng-waitif-0.2.0.tar.gz
"
