Christoph Reiter aecf770ad1 More old base-devel rebuilds
to get rid of the group
2022-11-14 08:40:49 +01:00

67 lines
1.8 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=man-db
pkgver=2.10.2
pkgrel=3
pkgdesc="A utility for reading man pages"
arch=('i686' 'x86_64')
url="https://www.nongnu.org/man-db/"
license=('GPL' 'LGPL')
depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less')
optdepends=('gzip')
makedepends=('gettext-devel' 'libgdbm-devel' 'libpipeline-devel' 'zlib-devel' 'autotools' 'gcc')
backup=('etc/man_db.conf')
conflicts=('man')
provides=('man')
replaces=('man')
install=${pkgname}.install
source=(https://savannah.nongnu.org/download/man-db/${pkgname}-${pkgver}.tar.xz{,.asc}
convert-mans)
sha256sums=('ee97954d492a13731903c9d0727b9b01e5089edbd695f0cdb58d405a5af5514d'
'SKIP'
'15c9452984c06335543d9692e25d7825063d39e4d7897a224a36bbbd5e0ffaa8')
validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson@debian.org>
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
autoreconf -fiv
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
local CYGWIN_CHOST="${CHOST/-msys/-cygwin}"
./configure \
--prefix=/usr \
--build=${CYGWIN_CHOST} \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--with-db=gdbm \
--disable-setuid \
--disable-cache-owner \
--enable-mandirs=GNU \
--enable-static \
--disable-shared \
--with-sections="1 n l 8 3 0 2 5 4 9 6 7" \
--with-systemdsystemunitdir=/usr/lib/systemd/system
make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
make check
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# part of groff pkg
rm -f ${pkgdir}/usr/bin/zsoelim
# script from LFS to convert manpages, see
# http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/man-db.html
install -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans
}