2012-03-21 10:33:46 +01:00
|
|
|
# Template file for 'udisks2'
|
|
|
|
pkgname=udisks2
|
2014-03-12 19:30:24 +01:00
|
|
|
version=2.1.3
|
2014-08-21 09:26:20 +02:00
|
|
|
revision=4
|
2012-03-21 10:33:46 +01:00
|
|
|
wrksrc="udisks-${version}"
|
|
|
|
build_style=gnu-configure
|
2014-08-21 09:26:20 +02:00
|
|
|
configure_args="--disable-static --with-udevdir=/usr/lib/udev"
|
2014-01-24 00:05:19 +01:00
|
|
|
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
|
2013-09-17 08:34:16 +02:00
|
|
|
makedepends="acl-devel device-mapper-devel liblvm2app-devel libparted-devel
|
2014-05-20 12:49:03 +02:00
|
|
|
libatasmart-devel polkit-devel libgudev-devel sg3_utils-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
make_dirs="/var/lib/udisks2 0750 root root"
|
2013-01-07 14:11:43 +01:00
|
|
|
short_desc="Disk Management Service, version 2"
|
2012-03-21 10:33:46 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/udisks"
|
|
|
|
license="GPL-2"
|
2013-01-07 14:11:43 +01:00
|
|
|
distfiles="http://udisks.freedesktop.org/releases/udisks-${version}.tar.bz2"
|
2014-03-12 19:30:24 +01:00
|
|
|
checksum=5cc92fd651ee49a7888f90d091282b949afc629b31fdb34e187208750720632d
|
2013-04-14 15:20:19 +02:00
|
|
|
|
2014-01-24 00:05:19 +01:00
|
|
|
# Package build options
|
2014-05-20 12:49:03 +02:00
|
|
|
build_options="gir systemd"
|
2014-01-24 00:05:19 +01:00
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2014-05-20 12:49:03 +02:00
|
|
|
build_options_default+=" gir"
|
2014-01-24 00:05:19 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
2014-05-20 12:49:03 +02:00
|
|
|
if [ "$build_option_systemd" ]; then
|
2014-08-21 09:26:20 +02:00
|
|
|
configure_args+=" --enable-systemd --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
2014-05-20 12:49:03 +02:00
|
|
|
makedepends+=" systemd-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-systemd"
|
|
|
|
fi
|
|
|
|
|
2014-05-20 12:54:25 +02:00
|
|
|
pre_configure() {
|
|
|
|
sed 's,-Werror,,g' -i configure
|
|
|
|
}
|
|
|
|
|
2013-04-14 15:20:19 +02:00
|
|
|
udisks2-devel_package() {
|
2014-01-24 00:05:19 +01:00
|
|
|
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
2013-09-17 08:34:16 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 15:20:19 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-17 08:34:16 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2014-01-24 00:05:19 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-14 15:20:19 +02:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|