summaryrefslogtreecommitdiffstats
path: root/abs/core/mlocate/PKGBUILD
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-05 03:13:06 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-05 03:13:06 (GMT)
commitdb6794dc27508afd7458b1bb8ea989111a97baac (patch)
tree62b954142dab896cd6537d30b8de7188ff73d126 /abs/core/mlocate/PKGBUILD
parentfad439a197c7e1c11e0fe5681bbbb3c04142a5fe (diff)
downloadlinhes_pkgbuild-db6794dc27508afd7458b1bb8ea989111a97baac.zip
linhes_pkgbuild-db6794dc27508afd7458b1bb8ea989111a97baac.tar.gz
linhes_pkgbuild-db6794dc27508afd7458b1bb8ea989111a97baac.tar.bz2
mlocate:Bumped to latest.
Diffstat (limited to 'abs/core/mlocate/PKGBUILD')
-rw-r--r--abs/core/mlocate/PKGBUILD57
1 files changed, 31 insertions, 26 deletions
diff --git a/abs/core/mlocate/PKGBUILD b/abs/core/mlocate/PKGBUILD
index 50db92b..62f7864 100644
--- a/abs/core/mlocate/PKGBUILD
+++ b/abs/core/mlocate/PKGBUILD
@@ -1,47 +1,52 @@
-# $Id: PKGBUILD 1939 2008-05-24 00:35:29Z james $
-# Maintainer: James Rayner <iphitus@gmail.com>
+# $Id: PKGBUILD 97017 2010-10-26 01:53:05Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: lydgate
pkgname=mlocate
-pkgver=0.20
-pkgrel=11
+pkgver=0.23.1
+pkgrel=2
pkgdesc="Faster merging drop-in for slocate"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
url="http://carolina.mff.cuni.cz/~trmac/blog/mlocate"
-license=("GPL")
-groups=("base")
+license=('GPL')
conflicts=('slocate')
provides=('slocate')
replaces=('slocate')
-depends=('glibc')
-backup=('etc/updatedb.conf')
+depends=('glibc' 'coreutils' 'sh')
+backup=('etc/updatedb.conf'
+ 'etc/cron.daily/updatedb')
install=mlocate.install
-source=("https://fedorahosted.org/mlocate/attachment/wiki/MlocateDownloads/mlocate-$pkgver.tar.bz2?format=raw" \
- updatedb.conf updatedb.cron.daily)
+source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-$pkgver.tar.xz
+ updatedb.conf
+ updatedb.cron.daily)
+md5sums=('db48f27fae91c754c46d8046919803c5'
+ 'c374ff223f2e07b5e602ba22359f2335'
+ 'cde5da81bebad2de556ef2e43d895e13')
+
build() {
- cd "$startdir"/src/$pkgname-$pkgver
+ cd $srcdir/$pkgname-$pkgver
# Build!
sed -i '/^groupname /s/mlocate/locate/' Makefile.in
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
- make || return 1
+ make
+ make check
+}
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
# Set up a default updatedb.conf and a daily cronjob
- install -v -D -m644 ../updatedb.conf "$startdir"/pkg/etc/updatedb.conf
- install -v -D -m744 ../updatedb.cron.daily "$startdir"/pkg/etc/cron.daily/updatedb
+ install -Dm644 ${srcdir}/updatedb.conf $pkgdir/etc/updatedb.conf
+ install -Dm744 ${srcdir}/updatedb.cron.daily $pkgdir/etc/cron.daily/updatedb
# Install Mlocate
- make DESTDIR="$startdir"/pkg install
+ make DESTDIR=$pkgdir install
- cd "$startdir"/pkg
- ln -sv locate usr/bin/slocate
- chgrp -v 21 usr/bin/locate
- chmod -v 2755 usr/bin/locate
+ ln -sv locate $pkgdir/usr/bin/slocate
+ chgrp -v 21 $pkgdir/usr/bin/locate
+ chmod -v 2755 $pkgdir/usr/bin/locate
- mkdir -pv var/lib
- install -d -m750 -g21 var/lib/locate
+ install -dm755 $pkgdir/var/lib
+ install -d -m750 -g21 $pkgdir/var/lib/locate
}
-
-md5sums=('ad5e4eb1f2aecf1a5af9fe36c6e297f4'
- '08f642828fe8a6a0c8e5059133c9a9e2'
- 'eee7f9db8c6145724313af6fd5fe9d66')