SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "unclutter"

# SliTaz package receipt.

PACKAGE="unclutter"
VERSION="8"
PATCHLEVEL="20"
CATEGORY="x-window"
SHORT_DESC="Hides the mouse cursor in X after a period of inactivity"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="PublicDomain"
WEB_SITE="https://packages.debian.org/sid/unclutter"
TARBALL="$PACKAGE-${VERSION}_$PATCHLEVEL.tar.gz"
WGET_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_$VERSION.orig.tar.gz"
PATCH_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_${VERSION}-$PATCHLEVEL.debian.tar.gz"
PATCH="$(basename $PATCH_URL)"
EXTRA_SOURCE_FILES="$PATCH"

DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/${PACKAGE}_/!d;/orig/!d;s|.*${PACKAGE}_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    if [ ! -f "$SRC/$PATCH)" ]; then
        busybox wget -O "$SRC/$PATCH" "$PATCH_URL"
    fi

    mkdir $src/patch
    tar -xzf $SRC/$PATCH -C $src/patch

    while read patchfile; do
        patch -p1 -i $src/patch/debian/patches/$patchfile
    done < $src/patch/debian/patches/series

    make && make install
    mkdir -p $install/usr/share/man/man1
    install -m0644 $src/unclutter.man $install/usr/share/man/man1/unclutter.1
    gzip -9 $install/usr/share/man/man1/unclutter.1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)