mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +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.2
|
|
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=('27de49a88b8657f50fda02d152b8a5f1'
|
|
'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
|
|
}
|