wok-current rev 18872

Add unclutter
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 03 23:48:44 2016 +0200 (2016-02-03)
parents 77a6f66653ab
children 0de331becb44
files unclutter/description.txt unclutter/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/unclutter/description.txt	Wed Feb 03 23:48:44 2016 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +unclutter is a program which runs permanently in the background of an X11
     1.5 +session. It checks on the X11 pointer (cursor) position every few seconds, and
     1.6 +when it finds it has not moved (and no buttons are pressed on the mouse, and
     1.7 +the cursor is not in the root window) it creates a small sub-window as a child
     1.8 +of the window the cursor is in. The new window installs a cursor of size 1x1
     1.9 +but a mask of all 0, ie an invisible cursor. This allows you to see all the
    1.10 +text in an xterm or xedit, for example. The human factors crowd would agree it
    1.11 +should make things less distracting.
    1.12 +
    1.13 +Once created, the program waits for the pointer to leave the window and then
    1.14 +destroys it, restoring the original situation. Button events are passed
    1.15 +transparently through to the parent window. They will usually cause the cursor
    1.16 +to reappear because an active grab will be made by the program while the button
    1.17 +is down, so the pointer will apparently leave the window, even though its x y
    1.18 +position doesnt change.
    1.19 +
    1.20 +The first version of this program used a grab to remove the cursor.
    1.21 +This method is still available with a "-grab" option to the program.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/unclutter/receipt	Wed Feb 03 23:48:44 2016 +0200
     2.3 @@ -0,0 +1,42 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="unclutter"
     2.7 +VERSION="8-20"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="Hides the mouse cursor in X after a period of inactivity"
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +LICENSE="PublicDomain"
    2.12 +WEB_SITE="https://packages.debian.org/sid/unclutter"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14 +WGET_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8.orig.tar.gz"
    2.15 +PATCH_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8-20.debian.tar.gz"
    2.16 +PATCH="$(basename $PATCH_URL)"
    2.17 +
    2.18 +DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
    2.19 +BUILD_DEPENDS=""
    2.20 +
    2.21 +# Rules to configure and make the package.
    2.22 +compile_rules()
    2.23 +{
    2.24 +	if [ ! -f "$SRC/$PATCH)" ]; then
    2.25 +		busybox wget -O "$SRC/$PATCH" "$PATCH_URL"
    2.26 +	fi
    2.27 +
    2.28 +	mkdir $src/patch
    2.29 +	tar -xzf $SRC/$PATCH -C $src/patch
    2.30 +
    2.31 +	while read patchfile; do
    2.32 +		patch -p1 -i $src/patch/debian/patches/$patchfile
    2.33 +	done < $src/patch/debian/patches/series
    2.34 +
    2.35 +	make && make install
    2.36 +	mkdir -p $install/usr/share/man/man1
    2.37 +	install -m0644 $src/unclutter.man $install/usr/share/man/man1/unclutter.1
    2.38 +	gzip -9 $install/usr/share/man/man1/unclutter.1
    2.39 +}
    2.40 +
    2.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.42 +genpkg_rules()
    2.43 +{
    2.44 +	cp -a $install/* $fs
    2.45 +}