wok annotate consolekit2/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | 3b252eb4d26a |
children | fe1b5660fdd1 |
rev | line source |
---|---|
Hans-G?nter@21533 | 1 # SliTaz package receipt. |
Hans-G?nter@21533 | 2 |
Hans-G?nter@21533 | 3 PACKAGE="consolekit2" |
Hans-G?nter@24435 | 4 VERSION="1.2.4" |
Hans-G?nter@21533 | 5 CATEGORY="system-tools" |
Hans-G?nter@21533 | 6 SHORT_DESC="ConsoleKit framework." |
Hans-G?nter@24435 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@21533 | 8 LICENSE="GPL2" |
Hans-G?nter@21533 | 9 WEB_SITE="https://github.com/Consolekit2/ConsoleKit2" |
Hans-G?nter@21533 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/consolekit.html" |
Hans-G?nter@21533 | 11 REPOLOGY="consolekit" |
Hans-G?nter@21533 | 12 |
Hans-G?nter@21533 | 13 SOURCE="ConsoleKit2" |
Hans-G?nter@24435 | 14 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24435 | 15 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/refs/tags/$VERSION.tar.gz" |
Hans-G?nter@21533 | 16 |
Hans-G?nter@24437 | 17 SUGGESTED="consolekit2-lang" |
pascal@24126 | 18 DEPENDS="acl dbus eudev-lib glib polkit xorg-libX11 zlib" |
Hans-G?nter@24435 | 19 BUILD_DEPENDS="acl-dev dbus-dev docbook-xsl eudev-dev gettext-base |
Hans-G?nter@24435 | 20 glib-dev libtool libxml2-tools libxslt polkit-dev |
Hans-G?nter@21534 | 21 util-linux-getopt util-linux-uuid-dev xmlto xorg-libX11-dev" |
Hans-G?nter@21533 | 22 |
pascal@24055 | 23 current_version() |
pascal@24055 | 24 { |
pascal@24440 | 25 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 26 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 27 } |
pascal@24055 | 28 |
Hans-G?nter@21533 | 29 compile_rules() |
Hans-G?nter@21533 | 30 { |
Hans-G?nter@24435 | 31 ./autogen.sh \ |
pascal@24126 | 32 --sysconfdir=/etc \ |
Hans-G?nter@21533 | 33 --localstatedir=/var \ |
Hans-G?nter@21533 | 34 --enable-udev-acl \ |
Hans-G?nter@21533 | 35 --enable-polkit \ |
Hans-G?nter@21533 | 36 --with-xinitrc-dir=/etc/X11/app-defaults/xinitrc.d \ |
Hans-G?nter@21533 | 37 --with-systemdsystemunitdir=no \ |
Hans-G?nter@21533 | 38 --enable-docbook-docs \ |
Hans-G?nter@21533 | 39 $CONFIGURE_ARGS && |
Hans-G?nter@21533 | 40 make && |
Hans-G?nter@21533 | 41 make install || return 1 |
Hans-G?nter@21533 | 42 |
Hans-G?nter@21533 | 43 mv -v $install/etc/X11/app-defaults/xinitrc.d/90-consolekit \ |
Hans-G?nter@21533 | 44 $install/etc/X11/app-defaults/xinitrc.d/90-consolekit.sh |
Hans-G?nter@21533 | 45 } |
Hans-G?nter@21533 | 46 |
Hans-G?nter@21533 | 47 genpkg_rules() |
Hans-G?nter@21533 | 48 { |
Hans-G?nter@21533 | 49 mkdir -p $fs/etc/X11/app-defaults |
Hans-G?nter@21533 | 50 mkdir -p $fs/lib |
Hans-G?nter@21533 | 51 mkdir -p $fs/usr/lib |
Hans-G?nter@21533 | 52 mkdir -p $fs/usr/share |
Hans-G?nter@21533 | 53 mkdir -p $fs/var/log/ConsoleKit |
Hans-G?nter@21533 | 54 mkdir -p $fs/var/run/ConsoleKit |
Hans-G?nter@21533 | 55 |
Hans-G?nter@21533 | 56 cp -a $install/etc/X11/app-defaults/xinitrc.d \ |
Hans-G?nter@24435 | 57 $fs/etc/X11/app-defaults |
pascal@24126 | 58 cp -a $install/etc $fs |
Hans-G?nter@21533 | 59 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21533 | 60 cp -a $install/lib/udev $fs/lib |
Hans-G?nter@21533 | 61 cp -a $install/usr/lib/ConsoleKit $fs/usr/lib |
Hans-G?nter@21533 | 62 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21533 | 63 cp -a $install/usr/libexec $fs/usr |
Hans-G?nter@21533 | 64 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21533 | 65 cp -a $install/usr/share/dbus-1 $fs/usr/share |
Hans-G?nter@21533 | 66 cp -a $install/usr/share/polkit-1 $fs/usr/share |
Hans-G?nter@21533 | 67 |
Hans-G?nter@21533 | 68 # modify symbolic links |
Hans-G?nter@24435 | 69 rm $fs/lib/udev/udev-acl |
Hans-G?nter@24435 | 70 ln -s ../../usr/libexec/udev-acl $fs/lib/udev/udev-acl |
Hans-G?nter@24435 | 71 rm $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck |
Hans-G?nter@24435 | 72 ln -s ../../../libexec/udev-acl $fs/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck |
Hans-G?nter@21533 | 73 } |