# Contributor: Natanael Copa # Contributor: Rasmus Thomsen # Maintainer: Natanael Copa pkgname=udisks2 pkgver=2.10.0 pkgrel=0 pkgdesc="daemon, tools and libraries to manipulate disks" options="!check" url="https://www.freedesktop.org/wiki/Software/udisks/" arch="all" license="GPL-2.0-or-later" depends="dbus" depends_dev=" acl-dev gobject-introspection-dev libatasmart-dev libgudev-dev lvm2-dev polkit-dev " makedepends="$depends_dev bash btrfs-progs-dev coreutils glib-dev gtk-doc intltool libblockdev-dev linux-headers " subpackages=" $pkgname-dev $pkgname-gtk-doc:gtkdoc:noarch $pkgname-doc $pkgname-lang $pkgname-libs $pkgname-bash-completion $pkgname-zsh-completion " source="https://github.com/storaged-project/udisks/releases/download/udisks-$pkgver/udisks-$pkgver.tar.bz2 " # O_CLOEXEC.patch builddir="$srcdir"/udisks-$pkgver build() { CFLAGS="$CFLAGS -flto=auto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-lvm2 \ --enable-lvmcache \ --enable-btrfs \ --disable-static \ --disable-zram \ --with-udevdir=/lib/udev make } check() { make check } gtkdoc() { amove usr/share/gtk-doc } package() { make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/*.a } libs() { pkgdesc="Dynamic library to access the udisks daemon" default_libs amove usr/lib/girepository* } sha512sums=" 3c9dc18dd5f6d61442205f4df2592ebf79211d12d71168f96e6814c2ce16f7a46cda7c0a5ccf47b7dc8b655d8af654d5a62e54b04e5b600af0b15558442cf3ed udisks-2.10.0.tar.bz2 "