cookutils view data/cooktest/receipt @ rev 412
We need logdir set for log path
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 14 12:12:01 2012 +0200 (2012-05-14) |
parents | |
children | 1520231a65c2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cooktest"
4 VERSION="1.0"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz QA test package."
7 MAINTAINER="devel@slitaz.org"
8 WEB_SITE="http://www.slitaz.org/"
10 DEPENDS=""
11 BUILD_DEPENDS=""
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 echo -e "\n./configure && make && make install"
17 echo "-----------------------------------"
18 echo -e " * Log file : $LOGS/$PACKAGE.log"
20 # Test if a package is installed.
21 [ -d "$INSTALLED/make" ] && echo " * Package : make is installed"
22 [ ! -d "$INSTALLED/make" ] && echo " * Package : make not installed"
24 echo ""
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/tmp
31 cat << EOT
32 cp -a \$install/usr/bin \$fs/usr
33 ------------------------------
34 * \$fs : $fs"
35 * \$stuff : $stuff"
36 * \$install : $install"
37 * \$src : $src"
39 EOT
40 # A file to have something to package. Cook fails if package is empty.
41 echo "NOTE: Create, copy files from \$install or \$stuff"
42 echo -n "cook-test:" > $fs/tmp/cook-test
43 date >> $fs/tmp/cook-test
44 echo ""
45 echo -n "End of receipt: press ENTER to continue"; read i
46 }