wok-current view udisks2/receipt @ rev 25268
xorg-cf-files/Imake.tmpl: update ArCmd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 17 14:59:20 2022 +0000 (2022-07-17) |
parents | 074f8db95176 |
children | 5926178cd6fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="udisks2"
4 VERSION="2.1.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="D-Bus service to access and manipulate storage devices"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/udisks/"
10 TARBALL="udisks-$VERSION.tar.bz2"
11 WGET_URL="https://udisks.freedesktop.org/releases/$TARBALL"
13 DEPENDS="libatasmart libgudev polkit"
14 BUILD_DEPENDS="docbook-xsl gtk-doc libgudev-dev polkit-dev libatasmart-dev \
15 gobject-introspection-dev"
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/udisks-2/!d;/tar/!d;s|.*udisks-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --enable-fhs-media \
30 --with-udevdir=/etc/udev \
31 --with-systemdsystemunitdir=no \
32 $CONFIGURE_ARGS &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders etc bin sbin libexec dbus-1 polkit-1 var
40 cook_copy_files *.so*
42 sed '/lang=/d' -i \
43 $fs/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
45 # Please, note:
46 # Package: slitaz-configs-base
47 # File: /etc/polkit-1/localauthority/50-local.d/55-storage.pkla
48 # Provides: complete access to udisks2 methods
50 # mount to "/media" instead of "/media/<user>"
51 cp $stuff/99-udisks2.rules $fs/etc/udev/rules.d/
52 }