# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=netifrc
pkgver=0.7.8
pkgrel=0
pkgdesc="Gentoo Network Interface Management Scripts"
url="https://gitweb.gentoo.org/proj/netifrc.git/"
arch="noarch"
license="BSD-2-Clause"
depends="udev"
makedepends="eudev-dev"
subpackages="$pkgname-openrc $pkgname-doc"
source="https://gitweb.gentoo.org/proj/netifrc.git/snapshot/netifrc-$pkgver.tar.gz"

build() {
	make PREFIX=/usr SYSCONFDIR=/etc SBINDIR=/sbin all
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr SYSCONFDIR=/etc SBINDIR=/sbin install
}

check() {
	make check
}

sha512sums="
4aeee683f7a593609da111a16c5653c12d17459f102ac3f7fd3412071c0a01f664d3724864c08ebfe40124c2a379325a424f1d8624479c8558096d7349acfe6e  netifrc-0.7.8.tar.gz
"
