wok rev 24126

Add eudev-lib
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 14 06:54:52 2021 +0000 (2021-10-14)
parents 5765a85d3efd
children 2ed3de6597f5
files apache-ant/receipt apache/receipt boulderdash/stuff/freeze.u consolekit2/receipt eudev-lib/receipt eudev/receipt
line diff
     1.1 --- a/apache-ant/receipt	Wed Oct 06 14:55:24 2021 +0000
     1.2 +++ b/apache-ant/receipt	Thu Oct 14 06:54:52 2021 +0000
     1.3 @@ -16,6 +16,13 @@
     1.4  #DEPENDS="java-jdk"
     1.5  BUILD_DEPENDS=""
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    1.11 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-bin.tar.*|\\1|" | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {
     2.1 --- a/apache/receipt	Wed Oct 06 14:55:24 2021 +0000
     2.2 +++ b/apache/receipt	Thu Oct 14 06:54:52 2021 +0000
     2.3 @@ -21,6 +21,13 @@
     2.4  CONFIG_FILES="/etc/apache /var/www /etc/ssl/apache"
     2.5  TAZPANEL_DAEMON="edit::/etc/apache/httpd.conf|web::$WEB_SITE"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - https://downloads.apache.org/httpd/ 2>/dev/null | \
    2.11 +	sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  compile_rules()
    2.16  {
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/boulderdash/stuff/freeze.u	Thu Oct 14 06:54:52 2021 +0000
     3.3 @@ -0,0 +1,41 @@
     3.4 +--- boulderdash.js
     3.5 ++++ boulderdash.js
     3.6 +@@ -4,7 +4,7 @@ Boulderdash = function() {
     3.7 +   // GENERAL purpose constants and helper methods
     3.8 +   //=========================================================================
     3.9 + 
    3.10 +-  var KEY = { ENTER: 13, ESC: 27, SPACE: 32, PAGEUP: 33, PAGEDOWN: 34, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40 };
    3.11 ++  var KEY = { ENTER: 13, ESC: 27, SPACE: 32, PAGEUP: 33, PAGEDOWN: 34, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, F: 70 };
    3.12 + 
    3.13 +   var Dom = {
    3.14 +     get:     function(id)       { return (id instanceof HTMLElement) ? id : document.getElementById(id); },
    3.15 +@@ -162,6 +162,7 @@ Boulderdash = function() {
    3.16 +       this.step     = 1/this.fps;                    // how long is each game frame (in seconds)
    3.17 +       this.birth    = 2*this.fps;                    // in which frame is rockford born ?
    3.18 +       this.timer    = this.cave.caveTime;            // seconds allowed to complete this cave 
    3.19 ++      this.freeze   = 0;
    3.20 +       this.idle     = { blink: false, tap: false };  // is rockford showing any idle animation ?
    3.21 +       this.flash    = false;                         // trigger white flash when rockford has collected enought diamonds
    3.22 +       this.won      = false;                         // set to true when rockford enters the outbox
    3.23 +@@ -261,8 +262,12 @@ Boulderdash = function() {
    3.24 +       this.endFrame();
    3.25 +     },
    3.26 + 
    3.27 ++    toggleFreeze: function() {
    3.28 ++      this.freeze = 1 - this.freeze;
    3.29 ++    },
    3.30 ++
    3.31 +     decreaseTimer: function(n) {
    3.32 +-      this.timer = Math.max(0, this.timer - (n || 1));
    3.33 ++      if (this.freeze === 0) this.timer = Math.max(0, this.timer - (n || 1));
    3.34 +       this.publish('timer', this.timer);
    3.35 +       return (this.timer === 0);
    3.36 +     },
    3.37 +@@ -755,6 +760,7 @@ Boulderdash = function() {
    3.38 +       case KEY.DOWN:       moving.startDown();  handled = true; break;
    3.39 +       case KEY.LEFT:       moving.startLeft();  handled = true; break;
    3.40 +       case KEY.RIGHT:      moving.startRight(); handled = true; break;
    3.41 ++      case KEY.F:          game.toggleFreeze(); handled = true; break;
    3.42 +       case KEY.ESC:        game.reset();        handled = true; break;
    3.43 +       case KEY.PAGEUP:     game.prev();         handled = true; break;
    3.44 +       case KEY.PAGEDOWN:   game.next();         handled = true; break;
     4.1 --- a/consolekit2/receipt	Wed Oct 06 14:55:24 2021 +0000
     4.2 +++ b/consolekit2/receipt	Thu Oct 14 06:54:52 2021 +0000
     4.3 @@ -16,7 +16,7 @@
     4.4  TARBALL_SHA1="28869807eed0cc4a7a1d98030be1f2c7e5700d0e"
     4.5  
     4.6  
     4.7 -DEPENDS="acl dbus eudev glib polkit xorg-libX11 zlib"
     4.8 +DEPENDS="acl dbus eudev-lib glib polkit xorg-libX11 zlib"
     4.9  BUILD_DEPENDS="acl-dev dbus-dev docbook-xsl eudev-dev gettext-base \
    4.10  	glib-dev libtool libxml2-tools libxslt polkit-dev \
    4.11  	util-linux-getopt util-linux-uuid-dev xmlto xorg-libX11-dev"
    4.12 @@ -30,6 +30,7 @@
    4.13  compile_rules()
    4.14  {
    4.15  	./configure							\
    4.16 +		--sysconfdir=/etc					\
    4.17  		--localstatedir=/var					\
    4.18  		--enable-udev-acl					\
    4.19  		--enable-polkit						\
    4.20 @@ -55,7 +56,7 @@
    4.21  
    4.22  	cp -a $install/etc/X11/app-defaults/xinitrc.d \
    4.23  		$fs/etc/X11/app-defaults
    4.24 -	cp -a $install/usr/etc			$fs
    4.25 +	cp -a $install/etc			$fs
    4.26  	cp -a $install/usr/bin			$fs/usr
    4.27  	cp -a $install/lib/udev			$fs/lib
    4.28  	cp -a $install/usr/lib/ConsoleKit	$fs/usr/lib
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/eudev-lib/receipt	Thu Oct 14 06:54:52 2021 +0000
     5.3 @@ -0,0 +1,20 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="eudev-lib"
     5.7 +VERSION="3.2.9"
     5.8 +CATEGORY="development"
     5.9 +SHORT_DESC="Eudev library files (libudev)."
    5.10 +MAINTAINER="tcg.thegamer@gmail.com"
    5.11 +LICENSE="GPL2"
    5.12 +WEB_SITE="https://wiki.gentoo.org/wiki/Project:Eudev"
    5.13 +
    5.14 +WANTED="eudev"
    5.15 +
    5.16 +HOST_ARCH="i486 arm"
    5.17 +
    5.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.19 +genpkg_rules()
    5.20 +{
    5.21 +	mkdir -p $fs/lib
    5.22 +	cp -a $install/lib/libudev*so*	$fs/lib
    5.23 +}
     6.1 --- a/eudev/receipt	Wed Oct 06 14:55:24 2021 +0000
     6.2 +++ b/eudev/receipt	Thu Oct 14 06:54:52 2021 +0000
     6.3 @@ -12,10 +12,16 @@
     6.4  WGET_URL="https://dev.gentoo.org/~blueness/$PACKAGE/$TARBALL"
     6.5  
     6.6  PROVIDE="udev"
     6.7 -DEPENDS="acl dbus kmod pciids usbids util-linux-blkid"
     6.8 +DEPENDS="acl dbus kmod pciids usbids util-linux-blkid eudev-lib"
     6.9  BUILD_DEPENDS="acl-dev dbus-dev gperf kmod-dev pcre-dev pkg-config 
    6.10  	util-linux-blkid-dev util-linux-uuid-dev"
    6.11  
    6.12 +current_version()
    6.13 +{
    6.14 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    6.15 +	sed '/tar.gz</!d;s|.*HREF=eudev-||;s|.tar.gz.*||' | sort -Vr | sed q
    6.16 +}
    6.17 +
    6.18  # Rules to configure and make the package.
    6.19  compile_rules()
    6.20  {
    6.21 @@ -43,7 +49,6 @@
    6.22  	cp -a $install/bin		$fs
    6.23  	cp -a $install/sbin		$fs
    6.24  	cp -a $install/etc		$fs
    6.25 -	cp -a $install/lib/libudev*so*	$fs/lib
    6.26  	cp -a $install/lib/udev		$fs/lib
    6.27  
    6.28  	# Copy rules files to udev configuration directory