summaryrefslogblamecommitdiff
path: root/user/netifrc/APKBUILD
blob: 32db36ece2d945b6e7bde3cd4f3f7bd502566ccc (plain) (tree)





























                                                                                                                                                                    
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=netifrc
pkgver=0.5.1
pkgrel=0
pkgdesc="User-friendly network interface management scripts for OpenRC"
url="https://www.gentoo.org/proj/en/base/openrc/"
arch="noarch"
license="2-BSD"
depends="eudev openrc"
makedepends="eudev-dev pkgconf"
install=""
options="!check"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://dev.gentoo.org/~robbat2/distfiles/netifrc-$pkgver.tar.bz2"
builddir="$srcdir/netifrc-$pkgver"

build() {
	cd "$builddir"
	make LIBEXECDIR=/lib/$pkgname PF="$pkgname-$pkgver"
}

package() {
	cd "$builddir"
	make LIBEXECDIR=/lib/$pkgname DESTDIR="$pkgdir" install
	for doc in README CREDITS TODO ChangeLog; do
		install -m 644 "$builddir"/$doc "$pkgdir"/usr/share/doc/$pkgname/
	done
}

sha512sums="277d10f58f694c734c9dec52896f847a58e40b61567573dd634d0a0604c27550d4baec461df46dac4e535753f6594afd30344696229f4f4cf4f5e04dba659710  netifrc-0.5.1.tar.bz2"