void-packages/srcpkgs/plocate/template

34 lines
935 B
Bash
Raw Normal View History

2020-10-27 21:48:10 +00:00
# Template file for 'plocate'
pkgname=plocate
2020-10-31 23:30:33 +00:00
version=1.0.7
revision=1
2020-10-27 21:48:10 +00:00
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"
2020-10-31 23:30:33 +00:00
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
}