87 lines
2.8 KiB
Bash
87 lines
2.8 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=man-db
|
|
pkgver=2.12.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"
|
|
url="https://gitlab.com/man-db/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})
|
|
source=(https://download.savannah.nongnu.org/releases/$pkgname/$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 3type 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 <cjwatson@debian.org>
|
|
|
|
sha512sums=('4b644a508cf10ef6d27b6325b08f8a89e0695bbc1409bf420efd27649c6851860cc472c4d86063f7b71dccd01fb158faa82afa1e2b91c9a20154acf66b0349bf'
|
|
'SKIP')
|
|
|
|
sha256sums=(415a6284a22764ad22ff0f66710d853be7790dd451cd71436e3d25c74d996a95 # man-db-2.12.0.tar.xz
|
|
3545558c85d4bd30d880e604e622efdff1d4b3b5e139474b667fc2c6f3c7ad06) # man-db-2.12.0.tar.xz.asc
|
|
|
|
## 78b1efa3d4fd9588649aae06aa60e4c6d801f7b998c5bd5e747c31f63acf17a6 man-db-2.12.0-01-x86_64.pkg.tar.lz
|
|
|