wok view unclutter/receipt @ rev 25433

Add httpfs2-enhanced
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 26 10:41:11 2022 +0000 (2022-08-26)
parents 29af9ccd87db
children
line source
1 # SliTaz package receipt.
3 PACKAGE="unclutter"
4 VERSION="8"
5 PATCHLEVEL="20"
6 CATEGORY="x-window"
7 SHORT_DESC="Hides the mouse cursor in X after a period of inactivity"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="PublicDomain"
10 WEB_SITE="https://packages.debian.org/sid/unclutter"
11 TARBALL="$PACKAGE-${VERSION}_$PATCHLEVEL.tar.gz"
12 WGET_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_$VERSION.orig.tar.gz"
13 PATCH_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_${VERSION}-$PATCHLEVEL.debian.tar.gz"
14 PATCH="$(basename $PATCH_URL)"
15 EXTRA_SOURCE_FILES="$PATCH"
17 DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
18 BUILD_DEPENDS=""
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/${PACKAGE}_/!d;/orig/!d;s|.*${PACKAGE}_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 if [ ! -f "$SRC/$PATCH)" ]; then
31 busybox wget -O "$SRC/$PATCH" "$PATCH_URL"
32 fi
34 mkdir $src/patch
35 tar -xzf $SRC/$PATCH -C $src/patch
37 while read patchfile; do
38 patch -p1 -i $src/patch/debian/patches/$patchfile
39 done < $src/patch/debian/patches/series
41 make && make install
42 mkdir -p $install/usr/share/man/man1
43 install -m0644 $src/unclutter.man $install/usr/share/man/man1/unclutter.1
44 gzip -9 $install/usr/share/man/man1/unclutter.1
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 }