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