app=udisks
version=2.9.4
build=1sml
homepage="http://www.freedesktop.org/wiki/Software/udisks"
download="https://github.com/storaged-project/udisks/releases/download/udisks-$version/udisks-$version.tar.bz2"
desc="Daemon that implements D-Bus interfaces for interacting with storage devices"
requires="libblockdev libatasmart polkit dbus"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --sbindir=/bin \
    --enable-lvm2 \
    --enable-lvmcache \
    --disable-zram \
    --disable-man \
    --disable-nls \
    --disable-rpath \
    --disable-static \
    --disable-introspection \
    --disable-gtk-doc-html

  make
  make install DESTDIR=$pkg 

  mkfinalpkg
}

sha512sums="
35f5429bc2a7092aa659cba9296837d127e2b17c23ab23111d0d9b230d15ef5a6965e112b1f3829748a69a52fb5b09722153f86f1ef70977b3ad7b7a4ec40ec5  udisks-2.9.4.tar.bz2
"
