#!/bin/bash

./configure --prefix=/usr --localstatedir=/var/lib/locate

make

make -j1 install

mv -v /usr/bin/find /bin
sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb