From fc7c5a36d2ab775d3e20b617d2aaeceb8cb444a8 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 12 May 2025 15:57:41 +0300 Subject: [PATCH] Fix dependencies and add comments to source.sh script --- pkg.info | 3 +-- source.sh | 9 ++++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pkg.info b/pkg.info index 0e0203a..98583d8 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,9 @@ name: readline description: GNU readline library version: 8.2 -revision: 2 +revision: 3 url: https://tiswww.case.edu/php/chet/readline/rltop.html license: GPL3-only architecture: any depends: ["glibc","ncurses"] -make_depends: ["bash","binutils","coreutils","gawk","gcc","glibc","grep","make","ncurses","patch","sed","texinfo"] type: source diff --git a/source.sh b/source.sh index cf2702a..f8bf038 100644 --- a/source.sh +++ b/source.sh @@ -32,8 +32,11 @@ check() { # This function is used to move the compiled files into the output directory package() { make SHLIB_LIBS="-lncursesw" DESTDIR="$BPM_OUTPUT" install - mkdir -p "$BPM_OUTPUT"/usr/share/doc + + # Install documentation + install -d "$BPM_OUTPUT"/usr/share/doc/readline install -m644 doc/*.{ps,pdf,html,dvi} "$BPM_OUTPUT"/usr/share/doc/ - mkdir -p "$BPM_OUTPUT"/usr/share/licenses/readline - cp COPYING "$BPM_OUTPUT"/usr/share/licenses/readline + + # Install package license + install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/readline/COPYING }