Date: Wednesday, February 27, 2019 @ 16:13:56 Author: andyrtr Revision: 346903
archrelease: copy trunk to testing-x86_64 Added: man-db/repos/testing-x86_64/ man-db/repos/testing-x86_64/PKGBUILD (from rev 346902, man-db/trunk/PKGBUILD) man-db/repos/testing-x86_64/convert-mans (from rev 346902, man-db/trunk/convert-mans) man-db/repos/testing-x86_64/man-db.install (from rev 346902, man-db/trunk/man-db.install) ----------------+ PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ convert-mans | 11 +++++++++ man-db.install | 11 +++++++++ 3 files changed, 83 insertions(+) Copied: man-db/repos/testing-x86_64/PKGBUILD (from rev 346902, man-db/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-02-27 16:13:56 UTC (rev 346903) @@ -0,0 +1,61 @@ +# Maintainer: Andreas Radke <andy...@archlinux.org> +# Contributor: Sergej Pupykin <ser...@aur.archlinux.org> + +pkgname=man-db +pkgver=2.8.5 +pkgrel=2 +pkgdesc="A utility for reading man pages" +arch=('x86_64') +url="https://www.nongnu.org/man-db/" +license=('GPL' 'LGPL') +groups=('base') +depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less' 'libseccomp') +makedepends=('po4a') +optdepends=('gzip') +backup=('etc/man_db.conf') +conflicts=('man') +provides=('man') +replaces=('man') +install=${pkgname}.install +source=(#https://download-mirror.savannah.gnu.org/releases/man-db/$pkgname-$pkgver.tar.xz{,.sig} + https://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.asc} + convert-mans +) +validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwat...@debian.org> +sha512sums=('8d1524c3b6459c9ac02d969149c18c198cb171bcd6acc493e863a466c01309958ee9f5ac52df4d7d27da29d35cb7c64132732f5b969181ab336500df2e6dad69' + 'SKIP' + '0b159285da20008f0fc0afb21f1eaebd39e8df5b0594880aa0e8a913b656608b8d16bb8d279d9e62d7aae52f62cb9b2fc49e237c6711f4a5170972b38d345535') + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --with-db=gdbm \ + --disable-setuid \ + --enable-cache-owner=root \ + --enable-mandirs=GNU \ + --with-sections="1 n l 8 3 0 2 5 4 9 6 7" + make +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${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 -d -m755 ${pkgdir}/usr/lib/systemd/system/multi-user.target.wants + ln -s ../man-db.timer ${pkgdir}//usr/lib/systemd/system/multi-user.target.wants/man-db.timer +} Copied: man-db/repos/testing-x86_64/convert-mans (from rev 346902, man-db/trunk/convert-mans) =================================================================== --- testing-x86_64/convert-mans (rev 0) +++ testing-x86_64/convert-mans 2019-02-27 16:13:56 UTC (rev 346903) @@ -0,0 +1,11 @@ +#!/bin/sh -e +FROM="$1" +TO="$2" +shift ; shift +while [ $# -gt 0 ] +do + FILE="$1" + shift + iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv + mv .tmp.iconv "$FILE" +done Copied: man-db/repos/testing-x86_64/man-db.install (from rev 346902, man-db/trunk/man-db.install) =================================================================== --- testing-x86_64/man-db.install (rev 0) +++ testing-x86_64/man-db.install 2019-02-27 16:13:56 UTC (rev 346903) @@ -0,0 +1,11 @@ +post_upgrade() { + # force database rebuild as recommended per upstream + if [ "`vercmp $2 2.7.0`" -lt 0 ]; then + echo "(re)building database..." + mandb -c --quiet + fi +} + +post_remove() { + rm -rf /var/cache/man +}