From 36255e834e2a2db25ec565b5bf14d7f1ae368a6e Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 16 Oct 2025 22:26:51 +0300 Subject: [PATCH] Switch to new download format and fix dependencies --- pkg.info | 19 +++++++++++++++++-- source.sh | 25 +++++++------------------ 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/pkg.info b/pkg.info index c77ac46..740eb8b 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,24 @@ name: man-db description: Man page reading utility version: 2.13.1 +revision: 2 url: https://www.nongnu.org/man-db/ license: GPL2-or-later and GPL3-or-later architecture: any -depends: ["bash","gdbm","groff","glibc","gzip","less","libpipeline","zlib"] -make_depends: ["bash","binutils","bzip2","coreutils","flex","gcc","gdbm","gettext","glibc","grep","groff","gzip","less","libpipeline","make","pkgconf","sed","xz-utils"] type: source +depends: + - bash + - gdbm + - glibc + - groff + - less + - libpipeline + - libseccomp + - zlib +optional_depends: + - gzip +downloads: + - url: https://download.savannah.gnu.org/releases/man-db/man-db-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 8afebb6f7eb6bb8542929458841f5c7e6f240e30c86358c1fbcefbea076c87d9 diff --git a/source.sh b/source.sh index cf4b2fe..51612bd 100644 --- a/source.sh +++ b/source.sh @@ -2,27 +2,15 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://download.savannah.gnu.org/releases/man-db/man-db-${BPM_PKG_VERSION}.tar.xz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() { - ./configure --prefix=/usr \ - --docdir=/usr/share/doc/man-db \ - --sysconfdir=/etc \ - --disable-setuid \ - --enable-cache-owner=bin \ - --with-browser=/usr/bin/lynx \ - --with-vgrind=/usr/bin/vgrind \ - --with-grap=/usr/bin/grap + ./configure --prefix=/usr \ + --docdir=/usr/share/doc/man-db \ + --sysconfdir=/etc \ + --disable-setuid \ + --enable-cache-owner=root \ + --with-db=gdbm make } @@ -37,5 +25,6 @@ check() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/man-db/COPYING }