void-packages/srcpkgs/mlocate/template

30 lines
1.1 KiB
Bash

# Template file for 'mlocate'
pkgname=mlocate
version=0.26
revision=3
build_style=gnu-configure
configure_args="--program-prefix=m --localstatedir=/var/lib"
system_accounts="mlocate"
make_dirs="/var/lib/mlocate 0755 root root"
short_desc="Implementation of locate/updatedb that reuses the database"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2"
homepage="https://fedorahosted.org/mlocate/"
distfiles="https://fedorahosted.org/releases/m/l/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
alternatives="
locate:locate:/usr/bin/mlocate
locate:locate.1:/usr/share/man/man1/mlocate.1
locate:locatedb.5:/usr/share/man/man5/mmlocate.db.5
locate:updatedb:/usr/bin/mupdatedb
locate:updatedb.1:/usr/share/man/man1/mupdatedb.1"
post_install() {
vinstall ${FILESDIR}/mupdatedb.cron-daily 744 etc/cron.daily mupdatedb
# rename for compatibility with findutils.
mv ${DESTDIR}/usr/share/man/man8/mupdatedb.8 ${DESTDIR}/usr/share/man/man1/mupdatedb.1
# remove 'm' prefix.
mv ${DESTDIR}/usr/share/man/man5/mupdatedb.conf.5 ${DESTDIR}/usr/share/man/man5/updatedb.conf.5
}