Switch to new download format and fix dependencies

This commit is contained in:
2025-10-16 22:26:51 +03:00
parent 3b418a14c3
commit 36255e834e
2 changed files with 24 additions and 20 deletions
+17 -2
View File
@@ -1,9 +1,24 @@
name: man-db name: man-db
description: Man page reading utility description: Man page reading utility
version: 2.13.1 version: 2.13.1
revision: 2
url: https://www.nongnu.org/man-db/ url: https://www.nongnu.org/man-db/
license: GPL2-or-later and GPL3-or-later license: GPL2-or-later and GPL3-or-later
architecture: any 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 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
+3 -14
View File
@@ -2,16 +2,6 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # 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 # 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 # 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() {
@@ -19,10 +9,8 @@ build() {
--docdir=/usr/share/doc/man-db \ --docdir=/usr/share/doc/man-db \
--sysconfdir=/etc \ --sysconfdir=/etc \
--disable-setuid \ --disable-setuid \
--enable-cache-owner=bin \ --enable-cache-owner=root \
--with-browser=/usr/bin/lynx \ --with-db=gdbm
--with-vgrind=/usr/bin/vgrind \
--with-grap=/usr/bin/grap
make make
} }
@@ -37,5 +25,6 @@ check() {
package() { package() {
make DESTDIR="$BPM_OUTPUT" install make DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/man-db/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/man-db/COPYING
} }