jobcore/man-db/PKGBUILD-arch

58 lines
1.8 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
pkgname=man-db
2024-04-06 19:09:37 +02:00
pkgver=2.12.1
2022-03-20 13:19:37 +01:00
pkgrel=1
pkgdesc="A utility for reading man pages"
arch=('x86_64')
2023-09-24 13:51:09 +02:00
url="https://gitlab.com/man-db/man-db"
2024-04-06 19:09:37 +02:00
license=('GPL-2.0-or-later AND GPL-3.0-or-later')
2023-09-24 13:51:09 +02:00
depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less' 'libseccomp' 'glibc')
2022-03-20 13:19:37 +01:00
makedepends=('po4a')
optdepends=('gzip') # covered by virtual "base" package
backup=('etc/man_db.conf')
conflicts=('man')
provides=('man')
replaces=('man')
install=${pkgname}.install
2024-04-06 19:09:37 +02:00
source=(#https://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.asc}
2022-03-20 13:19:37 +01:00
# fallback should be used within first 24h after a release
2024-04-06 19:09:37 +02:00
https://download-mirror.savannah.gnu.org/releases/man-db/$pkgname-$pkgver.tar.xz{,.asc}
2022-03-20 13:19:37 +01:00
)
validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson@debian.org>
2024-04-06 19:09:37 +02:00
sha512sums=('0f79f4205ce116c3148dc6caf561c1b7d793aac234188ef8edd1b1f5aaaebcca32c65ef403dff65896920535077fb63ddc2e9cb293efdb6ef3037c33916aa329'
2023-09-24 13:51:09 +02:00
'SKIP')
2022-03-20 13:19:37 +01:00
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--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"
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
install -d -m755 ${pkgdir}/usr/lib/systemd/system/timers.target.wants
ln -s ../man-db.timer ${pkgdir}/usr/lib/systemd/system/timers.target.wants/man-db.timer
}