wok annotate anacron/receipt @ rev 19265
Compress manpages.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 04 10:05:09 2016 +0300 (2016-07-04) |
parents | 380ffe05937a |
children | 7672854e4f43 |
rev | line source |
---|---|
pascal@14572 | 1 # SliTaz package receipt. |
pascal@14572 | 2 |
pascal@14572 | 3 PACKAGE="anacron" |
pascal@14572 | 4 VERSION="2.3" |
pascal@14572 | 5 CATEGORY="utilities" |
pascal@14572 | 6 SHORT_DESC="Periodic command scheduler." |
pascal@14572 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@14789 | 9 WEB_SITE="http://anacron.sourceforge.net/" |
pascal@14572 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14572 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@14572 | 12 |
pascal@14572 | 13 DEPENDS="" |
pascal@14572 | 14 BUILD_DEPENDS="" |
pascal@14572 | 15 |
pascal@14572 | 16 # Rules to configure and make the package. |
pascal@14572 | 17 compile_rules() |
pascal@14572 | 18 { |
pascal@14572 | 19 sed -i "s|^PREFIX =.*|PREFIX = $DESTDIR|" Makefile |
pascal@14572 | 20 sed -i 's/const int isleap/int isleap/' gregor.c |
pascal@14572 | 21 make 2>&1 | grep -v Makefile:57 && make install |
al@19265 | 22 |
al@19265 | 23 mkdir -p $install/usr/share |
al@19265 | 24 mv $install/usr/man $install/usr/share |
al@19265 | 25 cook_compress_manpages |
pascal@14572 | 26 } |
pascal@14572 | 27 |
al@19265 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19265 | 29 genpkg_rules() |
pascal@14572 | 30 { |
pascal@14572 | 31 cp -a $install/* $fs |
al@14789 | 32 find $fs/usr/man -type f -exec chmod a-x \{\} \; |
pascal@14572 | 33 } |