void-packages/srcpkgs/udisks/template

33 lines
1.1 KiB
Bash

# Template file for 'udisks'
pkgname=udisks
version=1.0.5
revision=6
build_style=gnu-configure
configure_args="--disable-static --enable-lvm2"
make_dirs="/var/lib/udisks 0750 root root"
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel dbus-glib-devel"
makedepends="libglib-devel device-mapper-devel
liblvm2app-devel libparted-devel libatasmart-devel polkit-devel
dbus-glib-devel libgudev-devel sg3_utils-devel"
depends="dbus"
short_desc="Disk Management Service"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.freedesktop.org/wiki/Software/udisks"
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
checksum=f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71
pre_configure() {
# Switch to /usr.
sed -i -e "s|\(slashlibdir\)=.*|\1=/usr/lib|g" \
-e "s|\(slashsbindir\)=.*|\1=/usr/bin|g" configure
}
do_check() {
: # requires sudo
}
post_install() {
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/profile.d/udisks-bash-completion.sh \
${DESTDIR}/usr/share/bash-completion/completions/udisks
}