summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-09-09 15:29:53 +0300
committerMaxim Devaev <[email protected]>2023-09-09 15:29:53 +0300
commit7251e761127e053b06db9260d8a13de5073f7689 (patch)
tree9760ae7895c615d60f075f27ada87f7793984842 /PKGBUILD
parent5f3a42f7fd7fe8cc474d9f6298da64ec3001fcb6 (diff)
/usr/share/kvmd/device
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6d5bb512..13cad349 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -201,6 +201,8 @@ package_kvmd() {
for _variant in "${_variants[@]}"; do
_platform=${_variant%:*}
_board=${_variant#*:}
+ _base=${_platform%-*}
+ _video=${_platform#*-}
eval "package_kvmd-platform-$_platform-$_board() {
cd \"kvmd-\$pkgver\"
@@ -242,5 +244,12 @@ for _variant in "${_variants[@]}"; do
backup=(\"\${backup[@]}\" etc/kvmd/tc358743-edid.hex)
install -DTm444 configs/kvmd/edid/$_platform.hex \"\$pkgdir/etc/kvmd/tc358743-edid.hex\"
fi
+
+ local _device=\"\$pkgdir/usr/share/kvmd/device\"
+ rm -f \"\$_device\"
+ echo PIKVM_BASE=$_base > \"\$_device\"
+ echo PIKVM_VIDEO=$_video >> \"\$_device\"
+ echo PIKVM_BOARD=$_board >> \"\$_device\"
+ chmod 444 \"\$_device\"
}"
done