diff --git a/pkg.info b/pkg.info index 2e38208..84cfa18 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,10 @@ name: kbd description: Keytable files and keyboard utilities version: 2.6.4 -revision: 2 +revision: 3 url: https://kbd-project.org/ license: GPL architecture: any -depends: ["bash","coreutils","glibc","pam"] -make_depends: ["bash","binutils","bison","check","coreutils","flex","gcc","gettext","glibc","gzip","make","patch","sed"] +depends: ["glibc","gzip","pam"] +make_depends: ["check"] type: source diff --git a/source.sh b/source.sh index 7cf48b5..c05b306 100644 --- a/source.sh +++ b/source.sh @@ -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 }