52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
pkgname=nnd-s6-linux-init
|
|
pkgver=1.6.4
|
|
pkgrel=1
|
|
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 \
|
|
-e PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin' \
|
|
-e HOME=/root \
|
|
-e XDG_RUNTIME_DIR=/run \
|
|
-e XDG_CONFIG_HOME=/etc \
|
|
-e XDG_STATE_HOME=/var/lib \
|
|
-e XDG_CACHE_HOME=/var/cache \
|
|
-e XDG_DATA_HOME=/usr/share \
|
|
-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 nnd-s6-services>=3.18 s6-linux-init>=1.1.2.0"
|
|
|
|
local base="/etc/s6-linux-init"
|
|
amove "$base/current"
|
|
|
|
mkdir -p "$subpkgdir"
|
|
mv -v "$subpkgdir/$base/current/bin" "$subpkgdir/sbin"
|
|
}
|