mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 05:47:41 +08:00
60 lines
1.7 KiB
Bash
60 lines
1.7 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=man-db
|
|
pkgver=2.6.0
|
|
pkgrel=2
|
|
pkgdesc="A utility for reading man pages"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.nongnu.org/man-db/"
|
|
license=('GPL' 'LGPL')
|
|
depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline')
|
|
optdepends=('less' 'gzip')
|
|
backup=('etc/man_db.conf'
|
|
'etc/cron.daily/man-db')
|
|
conflicts=('man')
|
|
provides=('man')
|
|
replaces=('man')
|
|
install=${pkgname}.install
|
|
source=(http://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.gz
|
|
1361_1360.diff
|
|
#http://launchpad.net/man-db/main/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
|
|
convert-mans man-db.cron.daily)
|
|
md5sums=('a6485560fa3c11c5b7df346ed5520adb'
|
|
'9a816cf0f9a1c2594491bbdba53fe64a'
|
|
'2b7662a7d5b33fe91f9f3e034361a2f6'
|
|
'd30c39ae47560304471b5461719e0f03')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
patch -Np0 -i $srcdir/1361_1360.diff
|
|
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
|
|
--with-db=gdbm --disable-setuid --enable-mandirs=GNU \
|
|
--with-sections="1 n l 8 3 0 2 5 4 9 6 7"
|
|
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
|
|
|
|
#install whatis cron script
|
|
install -D -m744 ${srcdir}/man-db.cron.daily ${pkgdir}/etc/cron.daily/man-db
|
|
}
|
|
|