wok diff unclutter/receipt @ rev 18872

Add unclutter
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 03 23:48:44 2016 +0200 (2016-02-03)
parents
children a77b556923e9
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/unclutter/receipt	Wed Feb 03 23:48:44 2016 +0200
     1.3 @@ -0,0 +1,42 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="unclutter"
     1.7 +VERSION="8-20"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Hides the mouse cursor in X after a period of inactivity"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="PublicDomain"
    1.12 +WEB_SITE="https://packages.debian.org/sid/unclutter"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WGET_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8.orig.tar.gz"
    1.15 +PATCH_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8-20.debian.tar.gz"
    1.16 +PATCH="$(basename $PATCH_URL)"
    1.17 +
    1.18 +DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
    1.19 +BUILD_DEPENDS=""
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	if [ ! -f "$SRC/$PATCH)" ]; then
    1.25 +		busybox wget -O "$SRC/$PATCH" "$PATCH_URL"
    1.26 +	fi
    1.27 +
    1.28 +	mkdir $src/patch
    1.29 +	tar -xzf $SRC/$PATCH -C $src/patch
    1.30 +
    1.31 +	while read patchfile; do
    1.32 +		patch -p1 -i $src/patch/debian/patches/$patchfile
    1.33 +	done < $src/patch/debian/patches/series
    1.34 +
    1.35 +	make && make install
    1.36 +	mkdir -p $install/usr/share/man/man1
    1.37 +	install -m0644 $src/unclutter.man $install/usr/share/man/man1/unclutter.1
    1.38 +	gzip -9 $install/usr/share/man/man1/unclutter.1
    1.39 +}
    1.40 +
    1.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 +genpkg_rules()
    1.43 +{
    1.44 +	cp -a $install/* $fs
    1.45 +}