#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=man-db pkgver=2.11.0 pkgrel=01 pkgdesc="A utility for reading man pages w/o systemd" arch=('x86_64') #url="https://www.nongnu.org/man-db/" url="https://gitlab.com/cjwatson/man-db" depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less' 'libseccomp') makedepends=('po4a') optdepends=('gzip') # covered by virtual "base" package backup=('etc/man_db.conf') conflicts=('man') provides=('man') replaces=('man') #options=('debug') # uncomment this to have the man-db-debug pkg built install=${pkgname}.install source=(https://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.asc} # fallback should be used within first 24h after a release #https://download-mirror.savannah.gnu.org/releases/man-db/$pkgname-$pkgver.tar.xz{,.asc} #snapdir.diff convert-mans ) #prepare() { # cd ${pkgname}-${pkgver} # # fix default Add MANDB_MAP entry mapping /snap/man to /var/cache/man/snap # # Arch needs /var/lib/snapd/snap/man to /var/cache/man/snap # patch -Np0 -i ../snapdir.diff #} # build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --with-systemdsystemunitdir=no \ --with-snapdir=/var/lib/snapd/snap \ --with-db=gdbm \ --disable-setuid \ --enable-cache-owner=root \ --enable-mandirs=GNU \ --with-sections="1 1p n l 8 3 3p 0 0p 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 } #---- license gpg-key sha256sums ---- license=('GPL' 'LGPL') validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson sha256sums=(4130e1a6241280359ef5e25daec685533c0a1930674916202ab0579e5a232c51 # man-db-2.11.0.tar.xz c190edcbbc7b16d192d0babcaa2562cfb21616caec7bba1de16c172daf16ecf6 # man-db-2.11.0.tar.xz.asc affab3adc4b83d011ed83060d8ac579211c932e6c0900b92e12779c092ad5df3) # convert-mans sha512sums=('0790dd6109e537f7dffb29258efd929d79274150755cab6bb8d6f239ad32df3a2006e00f61988808dc280fd3c1493a969e75cb8c4aab653f805bae8b73d9c910' 'SKIP' '0b159285da20008f0fc0afb21f1eaebd39e8df5b0594880aa0e8a913b656608b8d16bb8d279d9e62d7aae52f62cb9b2fc49e237c6711f4a5170972b38d345535')