diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-26 18:59:42 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-26 18:59:42 -0300 |
commit | 959510fa239cdcdaf0d8d3875cd2aaf652d74241 (patch) | |
tree | 0afdc6c433cbf03de1656e5d2557838af7098214 /core/mlocate | |
parent | 37c6b66933676a18529b4e647d1a79a626900512 (diff) | |
parent | 483f8b3ac46ac2d40e8cc2f9c25365741bebc791 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community-staging/happy/PKGBUILD
community-staging/haskell-quickcheck/PKGBUILD
community/mingw32-gcc-base/PKGBUILD
core/mlocate/PKGBUILD
core/procps-ng/PKGBUILD
core/sysvinit/PKGBUILD
elementary/gtk-engine-equinox/PKGBUILD
extra/audacious/PKGBUILD
extra/libsigc++/PKGBUILD
extra/postgresql-old-upgrade/PKGBUILD
extra/qt/PKGBUILD
extra/tftp-hpa/PKGBUILD
extra/transmission/PKGBUILD
gnome-unstable/at-spi2-atk/PKGBUILD
gnome-unstable/at-spi2-core/PKGBUILD
gnome-unstable/atk/PKGBUILD
gnome-unstable/clutter/PKGBUILD
gnome-unstable/evolution-data-server/PKGBUILD
gnome-unstable/evolution/PKGBUILD
gnome-unstable/gjs/PKGBUILD
gnome-unstable/glib-networking/PKGBUILD
gnome-unstable/glib2/PKGBUILD
gnome-unstable/gnome-desktop/PKGBUILD
gnome-unstable/gnome-online-accounts/PKGBUILD
gnome-unstable/gnome-settings-daemon/PKGBUILD
gnome-unstable/gnome-themes-standard/PKGBUILD
gnome-unstable/gobject-introspection/PKGBUILD
gnome-unstable/gtk3/PKGBUILD
gnome-unstable/gtkhtml4/PKGBUILD
gnome-unstable/gvfs/PKGBUILD
gnome-unstable/libsoup/PKGBUILD
gnome-unstable/nautilus/PKGBUILD
gnome-unstable/vala/PKGBUILD
gnome-unstable/webkitgtk3/PKGBUILD
libre/libretools/PKGBUILD
multilib/lib32-gtk2/PKGBUILD
multilib/lib32-qt/PKGBUILD
multilib/lib32-util-linux/PKGBUILD
testing/mlocate/PKGBUILD
testing/openmpi/PKGBUILD
testing/run-parts/PKGBUILD
testing/systemd/PKGBUILD
testing/transmission/PKGBUILD
testing/transmission/transmission-cli.install
testing/transmission/transmission.systemd
Diffstat (limited to 'core/mlocate')
-rw-r--r-- | core/mlocate/PKGBUILD | 60 | ||||
-rwxr-xr-x | core/mlocate/updatedb.cron | 6 |
2 files changed, 35 insertions, 31 deletions
diff --git a/core/mlocate/PKGBUILD b/core/mlocate/PKGBUILD index c45a7132a..9ebf0261c 100644 --- a/core/mlocate/PKGBUILD +++ b/core/mlocate/PKGBUILD @@ -1,51 +1,49 @@ -# $Id: PKGBUILD 162719 2012-06-29 02:14:10Z allan $ -# Maintainer: Allan McRae <allan@archlinux.org> +# $Id: PKGBUILD 166971 2012-09-23 22:22:21Z bisson $ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> # Contributor: lydgate pkgname=mlocate -pkgver=0.25 -pkgrel=2 -pkgdesc="Faster merging drop-in for slocate" +pkgver=0.26 +pkgrel=1 +pkgdesc='Merging locate/updatedb implementation' +url='https://fedorahosted.org/mlocate/' arch=('i686' 'x86_64' 'mips64el') -url="http://carolina.mff.cuni.cz/~trmac/blog/mlocate" license=('GPL') -depends=('glibc' 'coreutils' 'sh') backup=('etc/updatedb.conf' 'etc/cron.daily/updatedb') -source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-$pkgver.tar.xz - updatedb.conf - updatedb.cron.daily) -md5sums=('c6d043b170613b0e327a815b497f680a' - 'b56d81de17fe29b01b4b28861acb8fd4' - 'cde5da81bebad2de556ef2e43d895e13') +source=("https://fedorahosted.org/releases/m/l/mlocate/mlocate-${pkgver}.tar.xz" + 'updatedb.conf' + 'updatedb.cron') +sha1sums=('c6e6d81b25359c51c545f4b8ba0f3b469227fcbc' + '0150379149bf9d714bc81332d775fc273e7e3535' + '8301e6277d27db539af6cf4bc243e8e247bffc2e') build() { - cd $srcdir/$pkgname-$pkgver - - sed -i '/^groupname /s/mlocate/locate/' Makefile.in - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib - make + cd "${srcdir}/${pkgname}-${pkgver}" + sed -i '/^groupname /s/mlocate/locate/' Makefile.in + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib + make } check() { - cd $srcdir/$pkgname-$pkgver - make check + cd "${srcdir}/${pkgname}-${pkgver}" + make check } package() { - cd $srcdir/$pkgname-$pkgver + cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR=$pkgdir install + make DESTDIR="${pkgdir}" install - ln -s locate $pkgdir/usr/bin/slocate - chgrp 21 $pkgdir/usr/bin/locate - chmod 2755 $pkgdir/usr/bin/locate + chgrp 21 "${pkgdir}/usr/bin/locate" + chmod 2755 "${pkgdir}/usr/bin/locate" + ln -s locate "${pkgdir}/usr/bin/slocate" - install -dm755 $pkgdir/var/lib - install -dm750 -g21 $pkgdir/var/lib/locate - - # Set up a default updatedb.conf and a daily cronjob - install -Dm644 ${srcdir}/updatedb.conf $pkgdir/etc/updatedb.conf - install -Dm744 ${srcdir}/updatedb.cron.daily $pkgdir/etc/cron.daily/updatedb + install -dm755 "${pkgdir}/var/lib" + install -dm750 -g21 "${pkgdir}/var/lib/locate" + + install -Dm644 ../updatedb.conf "${pkgdir}/etc/updatedb.conf" + install -Dm744 ../updatedb.cron "${pkgdir}/etc/cron.daily/updatedb" } diff --git a/core/mlocate/updatedb.cron b/core/mlocate/updatedb.cron new file mode 100755 index 000000000..431cb533e --- /dev/null +++ b/core/mlocate/updatedb.cron @@ -0,0 +1,6 @@ +#!/bin/sh + +NICE='nice -n 19' +IONICE='ionice -c 2 -n 7' + +exec ${IONICE} ${NICE} updatedb -f proc |