33 lines
935 B
Bash
33 lines
935 B
Bash
# Template file for 'plocate'
|
|
pkgname=plocate
|
|
version=1.0.7
|
|
revision=1
|
|
build_style=meson
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libzstd-devel"
|
|
depends="mlocate"
|
|
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/"
|
|
distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
|
|
checksum=528541eede06170aa16488b2c24abad2e527a12053a62a4a49d0eac3a41e21d3
|
|
|
|
system_accounts="_plocate"
|
|
|
|
alternatives="
|
|
locate:locate:/usr/bin/plocate
|
|
locate:locate.1:/usr/share/man/man1/plocate.1
|
|
locate:updatedb:/usr/bin/pupdatedb"
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
LIBS="-latomic"
|
|
fi
|
|
|
|
post_install() {
|
|
# replace daily cronjob with our own version
|
|
rm ${DESTDIR}/etc/cron.daily/plocate
|
|
vinstall ${FILESDIR}/plocate.cron-daily 744 etc/cron.daily plocate-build
|
|
vbin ${FILESDIR}/pupdatedb
|
|
}
|