summaryrefslogtreecommitdiff
path: root/extra/udisks/PKGBUILD
blob: 0c1529d9ef91711cf8990cda66f74fea581a0248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 133589 2011-07-29 19:10:42Z giovanni $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=udisks
pkgver=1.0.3
pkgrel=6
pkgdesc="Disk Management Service"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.freedesktop.org/wiki/Software/udisks"
license=('GPL')
depends=('udev' 'sg3_utils' 'glib2' 'dbus-glib' 'polkit' 'parted' 'device-mapper' 'libatasmart' 'lsof' 'lvm2' 'eject')
makedepends=('intltool' 'docbook-xsl' 'gtk-doc')
options=(!libtool)
source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
        01-mkfs-tempdir.patch)
sha256sums=('d95bceb52a70c727291b934c4c05774899a0074927c8138a219b81a784de8a4b'
            '786c0adb1a37e16b351c906527e3cbd17193bb51d8c1dd0889f216556c419c6c')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/01-mkfs-tempdir.patch"
  ./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

  rm -rf "${pkgdir}/var/run"
}