wok view consolekit2/receipt @ rev 24084
libjson-c-dev: fix version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 10 13:06:31 2021 +0000 (2021-07-10) |
parents | 57308b19603b |
children | 83927a09d38d |
line source
1 # SliTaz package receipt.
3 PACKAGE="consolekit2"
4 VERSION="1.2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="ConsoleKit framework."
7 MAINTAINER="developer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/Consolekit2/ConsoleKit2"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/consolekit.html"
11 REPOLOGY="consolekit"
13 SOURCE="ConsoleKit2"
14 TARBALL="$SOURCE-$VERSION.tar.bz2"
15 WGET_URL="https://github.com/$SOURCE/$SOURCE/releases/download/$VERSION/$TARBALL"
16 TARBALL_SHA1="28869807eed0cc4a7a1d98030be1f2c7e5700d0e"
19 DEPENDS="acl dbus eudev glib polkit xorg-libX11 zlib"
20 BUILD_DEPENDS="acl-dev dbus-dev docbook-xsl eudev-dev gettext-base \
21 glib-dev libtool libxml2-tools libxslt polkit-dev \
22 util-linux-getopt util-linux-uuid-dev xmlto xorg-libX11-dev"
24 current_version()
25 {
26 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
28 }
30 compile_rules()
31 {
32 ./configure \
33 --localstatedir=/var \
34 --enable-udev-acl \
35 --enable-polkit \
36 --with-xinitrc-dir=/etc/X11/app-defaults/xinitrc.d \
37 --with-systemdsystemunitdir=no \
38 --enable-docbook-docs \
39 $CONFIGURE_ARGS &&
40 make &&
41 make install || return 1
43 mv -v $install/etc/X11/app-defaults/xinitrc.d/90-consolekit \
44 $install/etc/X11/app-defaults/xinitrc.d/90-consolekit.sh
45 }
47 genpkg_rules()
48 {
49 mkdir -p $fs/etc/X11/app-defaults
50 mkdir -p $fs/lib
51 mkdir -p $fs/usr/lib
52 mkdir -p $fs/usr/share
53 mkdir -p $fs/var/log/ConsoleKit
54 mkdir -p $fs/var/run/ConsoleKit
56 cp -a $install/etc/X11/app-defaults/xinitrc.d \
57 $fs/etc/X11/app-defaults
58 cp -a $install/usr/etc $fs
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/lib/udev $fs/lib
61 cp -a $install/usr/lib/ConsoleKit $fs/usr/lib
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
63 cp -a $install/usr/libexec $fs/usr
64 cp -a $install/usr/sbin $fs/usr
65 cp -a $install/usr/share/dbus-1 $fs/usr/share
66 cp -a $install/usr/share/polkit-1 $fs/usr/share
68 # modify symbolic links
69 rm $fs/lib/udev/udev-acl
70 ln -s ../../usr/libexec/udev-acl \
71 $fs/lib/udev/udev-acl
72 rm $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
73 ln -s ../../../libexec/udev-acl \
74 $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
75 }