2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2022-10-16 02:12:56 +02:00
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
2022-03-20 13:19:37 +01:00
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
2022-10-16 02:12:56 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:19:37 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=man-db
|
2024-04-06 19:09:37 +02:00
|
|
|
pkgver=2.12.1
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgrel=01
|
|
|
|
pkgdesc="A utility for reading man pages w/o systemd"
|
|
|
|
#url="https://www.nongnu.org/man-db/"
|
2023-09-24 13:51:09 +02:00
|
|
|
#url="https://gitlab.com/cjwatson/man-db"
|
|
|
|
url="https://gitlab.com/man-db/man-db"
|
2022-03-20 13:19:37 +01:00
|
|
|
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
|
2023-09-24 13:51:09 +02:00
|
|
|
#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})
|
2022-03-20 13:19:37 +01:00
|
|
|
# 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
|
2023-09-24 13:51:09 +02:00
|
|
|
#convert-mans)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
#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 \
|
2022-11-17 09:21:50 +01:00
|
|
|
--with-sections="1 1p n l 8 3 3p 0 0p 2 3type 5 4 9 6 7"
|
2022-03-20 13:19:37 +01:00
|
|
|
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
|
|
|
|
|
2023-09-24 13:51:09 +02:00
|
|
|
# # 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
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-04-06 19:09:37 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2024-04-06 19:09:37 +02:00
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2024-04-06 19:09:37 +02:00
|
|
|
license=('GPL-2.0-or-later AND GPL-3.0-or-later')
|
2022-10-16 02:12:56 +02:00
|
|
|
|
2024-04-06 19:09:37 +02:00
|
|
|
validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson@debian.org>
|
2023-09-24 13:51:09 +02:00
|
|
|
|
2024-04-06 19:09:37 +02:00
|
|
|
sha256sums=(ddee249daeb78cf92bab794ccd069cc8b575992265ea20e239e887156e880265 # man-db-2.12.1.tar.xz
|
|
|
|
4e56013b7fb81d00ab1787d549a52d72a2e052c41eb53cf75a17104053807c13) # man-db-2.12.1.tar.xz.asc
|
2022-10-16 02:12:56 +02:00
|
|
|
|
2024-04-06 19:09:37 +02:00
|
|
|
## eefc55a7a0633b88b2d253e68f5dd8fe6bf41e5e76057c5bc090db27c8f82e16 man-db-2.12.1-01-x86_64.pkg.tar.lz
|