void-packages/srcpkgs/udisks2/template
2015-07-01 07:50:07 +02:00

42 lines
1.3 KiB
Bash

# Template file for 'udisks2'
pkgname=udisks2
version=2.1.6
revision=1
wrksrc="udisks-${version}"
build_pie=yes
build_style=gnu-configure
configure_args="--disable-static --with-udevdir=/usr/lib/udev
--sbindir=/usr/bin --enable-compile-warnings=minimum --disable-systemd
$(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
makedepends="acl-devel device-mapper-devel liblvm2app-devel libparted-devel
libatasmart-devel polkit-devel libgudev-devel sg3_utils-devel
$(vopt_if gir gobject-introspection)"
make_dirs="/var/lib/udisks2 0750 root root"
short_desc="Disk Management Service, version 2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.freedesktop.org/wiki/Software/udisks"
license="GPL-2"
distfiles="http://udisks.freedesktop.org/releases/udisks-${version}.tar.bz2"
checksum=dec5f5c85fa0f74f39336acbfba1770f9988c096be23873714543c304b09f46a
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
udisks2-devel_package() {
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}