wok-6.x view 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 source
1 # SliTaz package receipt.
3 PACKAGE="unclutter"
4 VERSION="8-20"
5 CATEGORY="x-window"
6 SHORT_DESC="Hides the mouse cursor in X after a period of inactivity"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://packages.debian.org/sid/unclutter"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8.orig.tar.gz"
12 PATCH_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8-20.debian.tar.gz"
13 PATCH="$(basename $PATCH_URL)"
15 DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
16 BUILD_DEPENDS=""
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 if [ ! -f "$SRC/$PATCH)" ]; then
22 busybox wget -O "$SRC/$PATCH" "$PATCH_URL"
23 fi
25 mkdir $src/patch
26 tar -xzf $SRC/$PATCH -C $src/patch
28 while read patchfile; do
29 patch -p1 -i $src/patch/debian/patches/$patchfile
30 done < $src/patch/debian/patches/series
32 make && make install
33 mkdir -p $install/usr/share/man/man1
34 install -m0644 $src/unclutter.man $install/usr/share/man/man1/unclutter.1
35 gzip -9 $install/usr/share/man/man1/unclutter.1
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/* $fs
42 }