#!/bin/bash # slocate # # Douglas Thrift # # $Id$ name=slocate version=3.1 revision=0 categories=(base sysutils) description='Secure way to index and quickly search for local files' url='http://slocate.trakker.ca/' depends=('base/glibc') sources=(http://slocate.trakker.ca/files/$name-$version.tar.gz src-slocate.h.patch) # XXX: add slocate group function build() { cd $source/$sourcedir || return $? gmake -C src || return $? install -dv $package/{usr/{bin,share/man/man1},var/db} install -v -m 2755 src/slocate $package/usr/bin for file in locate update; do ln -v $package/usr/bin/slocate $package/usr/bin/$file done install -v -m 644 doc/@(slocate|updatedb).1 $package/usr/share/man/man1 ln -sv slocate.1 $package/usr/share/man/man1/locate.1 install -dv -m 750 $package/var/db/slocate }