42 lines
1.4 KiB
Bash
42 lines
1.4 KiB
Bash
# Template file for 'udisks2'
|
|
pkgname=udisks2
|
|
version=2.7.7
|
|
revision=1
|
|
wrksrc="udisks-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --with-udevdir=/usr/lib/udev
|
|
--enable-compile-warnings=minimum --disable-systemd
|
|
$(vopt_enable gir introspection)"
|
|
hostmakedepends="docbook-xsl glib-devel intltool libxslt pkg-config
|
|
$(vopt_if gir 'gobject-introspection')"
|
|
makedepends="acl-devel libatasmart-devel libgudev-devel liblvm2app-devel
|
|
libparted-devel polkit-devel sg3_utils-devel libblockdev-devel"
|
|
short_desc="Disk Management Service, version 2"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.freedesktop.org/wiki/Software/udisks"
|
|
changelog="https://raw.githubusercontent.com/storaged-project/udisks/master/NEWS"
|
|
distfiles="https://github.com/storaged-project/udisks/releases/download/udisks-${version}/udisks-${version}.tar.bz2"
|
|
checksum=faf14c4b20ed420ed9903d8309c7f4d3b7af89d1618d6d679315ece41feed4b6
|
|
make_dirs="/var/lib/udisks2 0750 root root"
|
|
|
|
# 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
|
|
}
|
|
}
|