wok-current view consolekit2/receipt @ rev 25146
updated portaudio and portaudio-dev (190600_20161030 -> 19.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 15:26:46 2022 +0100 (2022-06-29) |
parents | 3b252eb4d26a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="consolekit2"
4 VERSION="1.2.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="ConsoleKit framework."
7 MAINTAINER="maintainer@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.gz"
15 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/refs/tags/$VERSION.tar.gz"
17 SUGGESTED="consolekit2-lang"
18 DEPENDS="acl dbus eudev-lib glib polkit xorg-libX11 zlib"
19 BUILD_DEPENDS="acl-dev dbus-dev docbook-xsl eudev-dev gettext-base
20 glib-dev libtool libxml2-tools libxslt polkit-dev
21 util-linux-getopt util-linux-uuid-dev xmlto xorg-libX11-dev"
23 current_version()
24 {
25 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
27 }
29 compile_rules()
30 {
31 ./autogen.sh \
32 --sysconfdir=/etc \
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/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 $fs/lib/udev/udev-acl
71 rm $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
72 ln -s ../../../libexec/udev-acl $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
73 }