cookutils diff data/cooktest/receipt @ rev 713
cookall.sh: tzdata in a bdeps loop
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 12 08:44:11 2015 +0100 (2015-03-12) |
parents | |
children | 1520231a65c2 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/data/cooktest/receipt Thu Mar 12 08:44:11 2015 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cooktest" 1.7 +VERSION="1.0" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="SliTaz QA test package." 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +WEB_SITE="http://www.slitaz.org/" 1.12 + 1.13 +DEPENDS="" 1.14 +BUILD_DEPENDS="" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + echo -e "\n./configure && make && make install" 1.20 + echo "-----------------------------------" 1.21 + echo -e " * Log file : $LOGS/$PACKAGE.log" 1.22 + 1.23 + # Test if a package is installed. 1.24 + [ -d "$INSTALLED/make" ] && echo " * Package : make is installed" 1.25 + [ ! -d "$INSTALLED/make" ] && echo " * Package : make not installed" 1.26 + 1.27 + echo "" 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/tmp 1.34 + cat << EOT 1.35 +cp -a \$install/usr/bin \$fs/usr 1.36 +------------------------------ 1.37 + * \$fs : $fs" 1.38 + * \$stuff : $stuff" 1.39 + * \$install : $install" 1.40 + * \$src : $src" 1.41 + 1.42 +EOT 1.43 + # A file to have something to package. Cook fails if package is empty. 1.44 + echo "NOTE: Create, copy files from \$install or \$stuff" 1.45 + echo -n "cook-test:" > $fs/tmp/cook-test 1.46 + date >> $fs/tmp/cook-test 1.47 + echo "" 1.48 + echo -n "End of receipt: press ENTER to continue"; read i 1.49 +}