# Contributor: Alex Denes # Maintainer: Alex Denes pkgname=nnd-s6-linux-init pkgver=1.5 pkgrel=4 pkgdesc="Skeleton for nnd-s6-services and symlinks" url="none" arch="noarch" license="CC0-1.0" builddir="$srcdir/" depends="s6-linux-init" makedepends="$depends" subpackages=" $pkgname-default:_default " options="!check" prepare() { default_prepare cp -R "$startdir"/skel "$builddir"/nnd-skel } build() { s6-linux-init-maker -1 -f "nnd-skel" "current" } package() { mkdir -p "$pkgdir"/etc/s6-linux-init for x in nnd-skel current; do mv "$builddir"/"$x" "$pkgdir"/etc/s6-linux-init/"$x" done } _default() { depends="$depends nnd-s6-linux-init" local base="/etc/s6-linux-init" amove "$base/current" mkdir -p "$subpkgdir" mv -v "$subpkgdir/$base/current/bin" "$subpkgdir/sbin" }