Files
fds-os/packages/fds-cartridged/template
T

27 lines
981 B
Plaintext

pkgname=fds-cartridged
version=$(cat "${XBPS_DISTDIR}/fds-version")
revision=1
archs="aarch64"
nostrip=yes
noverifyrdeps=yes
depends="s6 s6-rc execline coreutils fds-cli"
short_desc="FDS static cartridge daemon and stable bay discovery"
maintainer="FDS/OS maintainers"
license="MIT"
homepage="https://github.com/void-linux/void-packages"
conf_files="/etc/fds/bays.toml /etc/fds/hardware-catalog.toml"
do_install() {
local input="${XBPS_SRCDISTDIR}/${pkgname}-${version}"
(cd "$input" && sha256sum -c SHA256SUMS) || return 1
vbin "${input}/fds-cartridged"
vbin "${input}/fds-profile"
vinstall "${FILESDIR}/network-run" 755 usr/libexec/fds
vinstall "${FILESDIR}/network-stop" 755 usr/libexec/fds
vinstall "${FILESDIR}/network-runtime" 755 usr/libexec/fds
vlicense "${input}/LICENSE"
vmkdir etc/s6-rc/source
cp -a "${input}/s6-source/." "${DESTDIR}/etc/s6-rc/source/"
vinstall "${FILESDIR}/bays.toml" 644 etc/fds
vinstall "${FILESDIR}/hardware-catalog.toml" 644 etc/fds
}