core/udisks2/PKGBUILD
2014-01-03 10:23:02 +00:00

37 lines
1.3 KiB
Bash

# Contributor: abveritas@chakra-project.org
pkgname=udisks2
pkgver=2.1.1
pkgrel=1
pkgdesc="Disk Management Service"
arch=('x86_64')
url="http://www.freedesktop.org/wiki/Software/udisks"
license=('GPL')
depends=('systemd' 'sg3_utils' 'glib2' 'dbus-glib' 'polkit' 'parted' 'device-mapper'
'libatasmart' 'lsof' 'lvm2' 'util-linux')
makedepends=('intltool' 'docbook-xsl' 'python2')
options=(!libtool)
source=("http://udisks.freedesktop.org/releases/udisks-$pkgver.tar.bz2"
'10-enable-mount.rules')
md5sums=('80e03f312542b800cf3162254b202725'
'd5c45e5a3e81cd864b8cc10f0ff7810f')
build() {
cd "${srcdir}/udisks-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--with-systemdsystemunitdir=/usr/lib/systemd/system --disable-static
make
}
package() {
cd "${srcdir}/udisks-${pkgver}"
make DESTDIR="${pkgdir}" install
bash_completiondir=/usr/share/bash-completion/completions
#fix ntfs mounts
sed -i -e 's|<allow_active>auth_admin_keep</allow_active>|<allow_active>yes</allow_active>|' ${pkgdir}/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
install -dm 700 -o polkitd $pkgdir/etc/polkit-1/rules.d/
install -Dm 644 $srcdir/10-enable-mount.rules $pkgdir/etc/polkit-1/rules.d/10-enable-mount.rules
}