30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
# FDS-owned overlay. The build helper supplies the verified static ARM payload.
|
|
pkgname=fds-dasungd
|
|
version=$(cat "${XBPS_DISTDIR}/fds-version")
|
|
revision=1
|
|
archs="aarch64"
|
|
nostrip=yes
|
|
noverifyrdeps=yes
|
|
depends="coreutils execline s6 s6-rc eudev"
|
|
short_desc="FDS base-system controller for the Dasung Paperlike 13K"
|
|
maintainer="FDS/OS maintainers"
|
|
license="MIT, LGPL-2.1-or-later"
|
|
# Hardware vendor reference; this local FDS controller is not an official driver.
|
|
homepage="https://www.dasung.com/"
|
|
conf_files="/etc/dasungd.toml"
|
|
|
|
do_install() {
|
|
local input="${XBPS_SRCDISTDIR}/${pkgname}-${version}"
|
|
[ -f "${input}/SHA256SUMS" ] || msg_error "Run make dasung to prepare the verified payload\n"
|
|
(cd "$input" && sha256sum -c SHA256SUMS) || return 1
|
|
vbin "${input}/dasungd"
|
|
vinstall "${FILESDIR}/dasungd.toml" 644 etc
|
|
vinstall "${FILESDIR}/99-dasung-spi.rules" 644 usr/lib/udev/rules.d
|
|
vinstall "${input}/paperlike13k-37hz.edid" 644 usr/lib/firmware/edid dasung-paperlike13k-37hz.bin
|
|
vmkdir etc/s6-rc/source
|
|
cp -a "${input}/s6-source/." "${DESTDIR}/etc/s6-rc/source/"
|
|
vlicense "${input}/LICENSE"
|
|
vlicense "${input}/libusb-COPYING" libusb-COPYING
|
|
vdoc "${input}/dasung.md" README.md
|
|
}
|