Add comments, enable vlock and add license
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
name: kbd
|
name: kbd
|
||||||
description: Keytable files and keyboard utilities
|
description: Keytable files and keyboard utilities
|
||||||
version: 2.6.4
|
version: 2.6.4
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://kbd-project.org/
|
url: https://kbd-project.org/
|
||||||
license: GPL
|
license: GPL
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["bash","coreutils","glibc","pam"]
|
depends: ["glibc","gzip","pam"]
|
||||||
make_depends: ["bash","binutils","bison","check","coreutils","flex","gcc","gettext","glibc","gzip","make","patch","sed"]
|
make_depends: ["check"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,9 +15,11 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
|
# Remove resizeicons program
|
||||||
sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
|
sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
|
||||||
sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
|
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
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,6 +33,11 @@ check() {
|
|||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user