From c79effe21dccc03d1cecc5eb6dbc58a3b9f4cb9f Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 7 Aug 2012 14:04:24 -0500
Subject: udisks 1.0.4

---
 abs/core/udisks/PKGBUILD | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/abs/core/udisks/PKGBUILD b/abs/core/udisks/PKGBUILD
index 68017ee..e576d2e 100644
--- a/abs/core/udisks/PKGBUILD
+++ b/abs/core/udisks/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 136339 2011-08-26 17:03:08Z ibiru $
+# $Id: PKGBUILD 160373 2012-06-01 12:58:48Z dreisner $
 # Maintainer: Jan de Groot <jgc@archlinux.org>
 
 pkgname=udisks
 pkgver=1.0.4
-pkgrel=1
+pkgrel=4
 pkgdesc="Disk Management Service"
 arch=('i686' 'x86_64')
 url="http://www.freedesktop.org/wiki/Software/udisks"
@@ -18,13 +18,14 @@ build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
       --libexecdir=/usr/lib/udisks --disable-static
-  #fix location for bash_completion helper
-  sed -i -e 's|profile.d|bash_completion.d|' tools/Makefile
-
   make
 }
 
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  make DESTDIR="${pkgdir}" install
+  make profiledir=/usr/share/bash-completion/completions DESTDIR="${pkgdir}" install
+  chmod 644 "${pkgdir}/usr/share/bash-completion/completions/udisks-bash-completion.sh"
+  # move udev helpers and rules to /usr/lib
+  mv "${pkgdir}"/lib/udev "${pkgdir}"/usr/lib/
+  rm -r "${pkgdir}"/lib
 }
-- 
cgit v0.12

