From e4167ddf2adad442a80284ca935e1a5afdd77655 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 7 Apr 2020 04:54:13 +0200 Subject: [PATCH] kbd: only package resizecons if it is generated This program is not build for all target platforms. Signed-off-by: David Oberhollenzer --- pkg/kbd/build | 4 ++++ pkg/kbd/kbd.files | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/kbd/build b/pkg/kbd/build index 970861d..99d41b1 100755 --- a/pkg/kbd/build +++ b/pkg/kbd/build @@ -21,6 +21,10 @@ build() { deploy() { make DESTDIR="$PKGDEPLOYDIR" install cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR" + + if [ -f "$PKGDEPLOYDIR/bin/resizecons" ]; then + echo "file bin/resizecons 0755 0 0" >> "$PKGDEPLOYDIR/kbd.files" + fi } check_update() { diff --git a/pkg/kbd/kbd.files b/pkg/kbd/kbd.files index 4524931..2f75ab3 100644 --- a/pkg/kbd/kbd.files +++ b/pkg/kbd/kbd.files @@ -12,7 +12,6 @@ file bin/loadunimap 0755 0 0 file bin/mapscrn 0755 0 0 file bin/openvt 0755 0 0 file bin/psfxtable 0755 0 0 -file bin/resizecons 0755 0 0 file bin/setfont 0755 0 0 file bin/setkeycodes 0755 0 0 file bin/setleds 0755 0 0