Switch to new download format and fix dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 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() {
|
||||
@@ -19,10 +9,8 @@ build() {
|
||||
--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
|
||||
--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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user