mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
# Contributor: lydgate
|
|
|
|
pkgname=mlocate
|
|
pkgver=0.22.1
|
|
pkgrel=1
|
|
pkgdesc="Faster merging drop-in for slocate"
|
|
arch=('arm')
|
|
url="http://carolina.mff.cuni.cz/~trmac/blog/mlocate"
|
|
license=('GPL')
|
|
groups=('base')
|
|
conflicts=('slocate')
|
|
provides=('slocate')
|
|
replaces=('slocate')
|
|
depends=('glibc' 'sh')
|
|
backup=('etc/updatedb.conf'
|
|
'etc/cron.daily/updatedb')
|
|
install=mlocate.install
|
|
source=(http://openpogo.com/pkgsrc/core/mlocate-$pkgver.tar.bz2
|
|
updatedb.conf
|
|
updatedb.cron.daily)
|
|
md5sums=('f62b5d072ac3d73a4bf161af696db6bf'
|
|
'66898efb290eff4efd44a0b94fe3927d'
|
|
'eee7f9db8c6145724313af6fd5fe9d66')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
# Build!
|
|
sed -i '/^groupname /s/mlocate/locate/' Makefile.in
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
|
|
make || return 1
|
|
|
|
# Set up a default updatedb.conf and a daily cronjob
|
|
install -Dm644 ../updatedb.conf $pkgdir/etc/updatedb.conf
|
|
install -Dm744 ../updatedb.cron.daily $pkgdir/etc/cron.daily/updatedb
|
|
|
|
# Install Mlocate
|
|
make DESTDIR=$pkgdir install
|
|
|
|
ln -sv locate $pkgdir/usr/bin/slocate
|
|
chgrp -v 21 $pkgdir/usr/bin/locate
|
|
chmod -v 2755 $pkgdir/usr/bin/locate
|
|
|
|
install -dm755 $pkgdir/var/lib
|
|
install -d -m750 -g21 $pkgdir/var/lib/locate
|
|
}
|