# Contributor: Alex Denes # Maintainer: Alex Denes pkgname=nnd-s6-linux-init pkgver=1.1 pkgrel=0 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 " prepare() { default_prepare cp -R "$startdir"/skel "$builddir"/skel } package() { mkdir -p "$pkgdir"/etc/s6-linux-init mv "$builddir"/skel "$pkgdir"/etc/s6-linux-init/nnd-skel } _default() { local base="/etc/s6-linux-init" local \ skel="$pkgdir/$base/nnd-skel" \ dest="$subpkgdir/$base/current" mkdir -p "${dest%/*}" s6-linux-init-maker -1 -f "$skel" "$dest" mkdir -p "$subpkgdir/sbin" for i in "$dest"/bin/*; do local bin="${i##*/}" ln -sf "$base/current/bin/$bin" "$subpkgdir/sbin/$bin" done }