mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 17:25:24 +01:00
Add kbd-1.15.
This also requires a patch to linux-headers; while we are at it, make linux-headers PREFIX agnostic.
This commit is contained in:
parent
5c88f1c87f
commit
ddd4f1bc81
7 changed files with 977 additions and 928 deletions
30
sysa/kbd-1.15/kbd-1.15.sh
Executable file
30
sysa/kbd-1.15/kbd-1.15.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Remove flex/bison files
|
||||
rm src/loadkeys.c src/analyze.c
|
||||
|
||||
# Fix musl incompat
|
||||
sed -i -e 's/u_char/unsigned char/g' \
|
||||
-e 's/u_short/unsigned short/g' src/dumpkeys.c src/loadkeys.y
|
||||
|
||||
AUTOPOINT=true autoreconf -fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure --prefix=${PREFIX}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Missing dependency in Makefile
|
||||
flex -o src/analyze.c src/analyze.l
|
||||
make MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make MAKEINFO=true DESTDIR=${DESTDIR} install
|
||||
}
|
||||
16
sysa/kbd-1.15/patches/fcntl.patch
Normal file
16
sysa/kbd-1.15/patches/fcntl.patch
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
Add missing fcntl header.
|
||||
|
||||
--- src/kbdrate.c 2021-07-22 22:35:53.671970814 +1000
|
||||
+++ src/kbdrate.c 2021-07-22 22:36:10.038096797 +1000
|
||||
@@ -94,6 +94,7 @@
|
||||
};
|
||||
|
||||
#include <signal.h>
|
||||
+#include <fcntl.h>
|
||||
|
||||
#include "nls.h"
|
||||
#include "version.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue