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