updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / udisks-floppy / PKGBUILD
blobaf46690713eb11d4f24062c0214b1fcd237377c9
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 _pkgname=udisks
5 pkgname=$_pkgname-floppy
6 pkgver=1.0.4
7 pkgrel=1
8 pkgdesc="Disk Management Service with floppy support"
9 arch=('i686' 'x86_64')
10 url="http://www.freedesktop.org/wiki/Software/udisks"
11 license=('GPL')
12 depends=('udev' 'sg3_utils' 'glib2' 'dbus-glib' 'polkit' 'parted' 'device-mapper' 'libatasmart' 'lsof' 'eject')
13 makedepends=('intltool' 'docbook-xsl')
14 conflicts=('udisks')
15 provides=("udisks=$pkgver")
16 options=(!libtool)
17 source=(http://hal.freedesktop.org/releases/${_pkgname}-${pkgver}.tar.gz
18         floppy.patch)
19 sha256sums=('854b89368733b9c3a577101b761ad5397ae75a05110c8698ac5b29de9a8bf8f5'
20             '2cde9e0066d83479216c9539352a9d4bc7d8064887e2fc13a9cb490dbcfd2c58')
22 build() {
23   cd "${srcdir}/${_pkgname}-${pkgver}"
25   # Add back floppy support for GUI apps
26   patch -Np1 -i "${srcdir}/floppy.patch"
28   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
29       --libexecdir=/usr/lib/udisks --disable-static
30   #fix location for bash_completion helper
31   sed -i -e 's|profile.d|bash_completion.d|' tools/Makefile
33   make
36 package() {
37   cd "${srcdir}/${_pkgname}-${pkgver}"
38   make DESTDIR="${pkgdir}" install