wok annotate unclutter/receipt @ rev 21115

libaio: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 19 18:51:13 2019 +0100 (2019-03-19)
parents 7813bc699d9a
children 25f8eb393142
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)"
pascal@18930 14 EXTRA_SOURCE_FILES="$PATCH"
al@18872 15
al@18872 16 DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
al@18872 17 BUILD_DEPENDS=""
al@18872 18
al@18872 19 # Rules to configure and make the package.
al@18872 20 compile_rules()
al@18872 21 {
al@18872 22 if [ ! -f "$SRC/$PATCH)" ]; then
al@18872 23 busybox wget -O "$SRC/$PATCH" "$PATCH_URL"
al@18872 24 fi
al@18872 25
al@18872 26 mkdir $src/patch
al@18872 27 tar -xzf $SRC/$PATCH -C $src/patch
al@18872 28
al@18872 29 while read patchfile; do
al@18872 30 patch -p1 -i $src/patch/debian/patches/$patchfile
al@18872 31 done < $src/patch/debian/patches/series
al@18872 32
al@18872 33 make && make install
al@18872 34 mkdir -p $install/usr/share/man/man1
al@18872 35 install -m0644 $src/unclutter.man $install/usr/share/man/man1/unclutter.1
al@18872 36 gzip -9 $install/usr/share/man/man1/unclutter.1
al@18872 37 }
al@18872 38
al@18872 39 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18872 40 genpkg_rules()
al@18872 41 {
al@18872 42 cp -a $install/* $fs
al@18872 43 }