40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'plocate'
|
|
pkgname=plocate
|
|
version=1.1.13
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="
|
|
-Dinstall_systemd=false
|
|
-Dupdatedb_progname=pupdatedb
|
|
-Dlocategroup=_plocate"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libzstd-devel"
|
|
short_desc="Much faster locate based on posting lists"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://plocate.sesse.net/"
|
|
changelog="https://git.sesse.net/?p=plocate;a=blob_plain;f=NEWS;hb=HEAD"
|
|
distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
|
|
checksum=9ce3d7217550e7f0e9a01a30454c1c5dbe39633e5bce5964cb95c82a738c979a
|
|
|
|
system_accounts="_plocate"
|
|
|
|
alternatives="
|
|
locate:locate:/usr/bin/plocate
|
|
locate:locate.1:/usr/share/man/man1/plocate.1
|
|
locate:updatedb:/usr/bin/pupdatedb
|
|
locate:updatedb.conf.5:/usr/share/man/man5/pupdatedb.conf.5"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
LIBS="-latomic"
|
|
fi
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/plocate.cron-daily 744 etc/cron.daily plocate-build
|
|
mv ${DESTDIR}/usr/share/man/man5/{,p}updatedb.conf.5
|
|
}
|