Add comments, enable vlock and add license

This commit is contained in:
2025-05-11 12:44:14 +03:00
parent 3e50bb385d
commit f131f3cf0a
2 changed files with 13 additions and 6 deletions
+10 -3
View File
@@ -15,9 +15,11 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
# Remove resizeicons program
sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
./configure --prefix=/usr --disable-vlock
./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share/kbd
make
}
@@ -31,6 +33,11 @@ check() {
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
mkdir -p "$BPM_OUTPUT"/usr/share/doc/kbd
cp -R -v docs/doc -T "$BPM_OUTPUT"/usr/share/doc/kbd
# Install documentation
install -d "$BPM_OUTPUT"/usr/share/doc/kbd
cp -rv docs/doc -T "$BPM_OUTPUT"/usr/share/doc/kbd
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/kbd/COPYING
}