wok-next diff udisks2/receipt @ rev 20323

fix vice
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 11 23:40:00 2017 +0100 (2017-11-11)
parents f463de72afe3
children 555cf3b9f1ff
line diff
     1.1 --- a/udisks2/receipt	Sun Jun 18 04:38:10 2017 +0300
     1.2 +++ b/udisks2/receipt	Sat Nov 11 23:40:00 2017 +0100
     1.3 @@ -1,45 +1,44 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="udisks2"
     1.8 -VERSION="2.1.8"
     1.9 +VERSION="2.7.2"
    1.10  CATEGORY="system-tools"
    1.11  SHORT_DESC="D-Bus service to access and manipulate storage devices"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="https://www.freedesktop.org/wiki/Software/udisks/"
    1.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/udisks2.html"
    1.16 +
    1.17  TARBALL="udisks-$VERSION.tar.bz2"
    1.18 -WGET_URL="https://udisks.freedesktop.org/releases/$TARBALL"
    1.19 +WGET_URL="https://github.com/storaged-project/udisks/releases/download/udisks-$VERSION/$TARBALL"
    1.20  
    1.21 -DEPENDS="libatasmart libgudev polkit"
    1.22 -BUILD_DEPENDS="docbook-xsl gtk-doc libgudev-dev polkit-dev libatasmart-dev \
    1.23 -gobject-introspection-dev intltool"
    1.24 +BUILD_DEPENDS="docbook-xsl gtk-doc gobject-introspection-dev libgudev-dev \
    1.25 +libblockdev-dev polkit-dev libatasmart-dev acl-dev intltool"
    1.26 +SPLIT="udisks2-dev"
    1.27  
    1.28 -# Rules to configure and make the package.
    1.29 -compile_rules()
    1.30 -{
    1.31 +compile_rules() {
    1.32  	./configure \
    1.33  		--sysconfdir=/etc \
    1.34  		--localstatedir=/var \
    1.35 +		--disable-static \
    1.36  		--enable-fhs-media \
    1.37 -		--with-udevdir=/etc/udev \
    1.38 -		--with-systemdsystemunitdir=no \
    1.39  		$CONFIGURE_ARGS &&
    1.40 -	make && make install
    1.41 +	make && make install || return 1
    1.42 +
    1.43 +	# mount to "/media" instead of "/media/<user>"
    1.44 +	mkdir -p $install/etc/udev/rules.d/
    1.45 +	cp $stuff/99-udisks2.rules $install/etc/udev/rules.d/
    1.46  }
    1.47  
    1.48 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.49 -genpkg_rules()
    1.50 -{
    1.51 -	copy etc/ bin/ sbin/ libexec/ dbus-1/ polkit-1/ var/ *.so*
    1.52 -
    1.53 -	sed '/lang=/d' -i \
    1.54 -		$fs/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
    1.55 -
    1.56 -	# Please, note:
    1.57 -	# Package:  slitaz-configs-base
    1.58 -	# File:     /etc/polkit-1/localauthority/50-local.d/55-storage.pkla
    1.59 -	# Provides: complete access to udisks2 methods
    1.60 -
    1.61 -	# mount to "/media" instead of "/media/<user>"
    1.62 -	cp $stuff/99-udisks2.rules $fs/etc/udev/rules.d/
    1.63 +genpkg_rules() {
    1.64 +	case $PACKAGE in
    1.65 +		udisks2)
    1.66 +			copy @std
    1.67 +			DEPENDS="libatasmart libgudev polkit"
    1.68 +			;;
    1.69 +		*-dev)
    1.70 +			copy @dev
    1.71 +			DEPENDS="udisks2 glib-dev"
    1.72 +			;;
    1.73 +	esac
    1.74  }