#!/bin/bash

patch -Np1 -i ../kbd-"${VERSION}"-backspace-1.patch

sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in

./configure --prefix=/usr --disable-vlock

make

make -j1 install

mkdir -v /usr/share/doc/kbd-"${VERSION}"
cp -R -v docs/doc/* /usr/share/doc/kbd-"${VERSION}"