mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-25 04:26:31 +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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue