SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:cookbook:receipt [2012/10/24 19:42]
linea start to update (nice work lexeii)
en:cookbook:receipt [2017/04/24 17:05]
hgt [Functions]
Line 51: Line 51:
   * **$WANTED :** SliTaz packages normally depend on the compilation of a source package. Sometimes the recipe of a package requires no compilation of rules, then $WANTED is used to copy files from the source of another package by using the variable $ src.   * **$WANTED :** SliTaz packages normally depend on the compilation of a source package. Sometimes the recipe of a package requires no compilation of rules, then $WANTED is used to copy files from the source of another package by using the variable $ src.
  
-  * **$SOURCE :** It may be that the Tazpkg package name differs from the name of the source package. Example for Xorg packages, the name of Tazpkg library X11 is '​xorg-libX11'​ and the name of the package source is libX11. $SOURCE allows you to use the variables $src and $_pkg during the cooking of a package. It should be noted that in the case of libX11, the name of the source archive becomes $SOURCE-$VERSION.tar.gz.+  * **$SOURCE :** It may be that the Tazpkg package name differs from the name of the source package. Example for Xorg packages, the name of Tazpkg library X11 is '​xorg-libX11'​ and the name of the package source is libX11. $SOURCE allows you to use the variables $src and $install ​during the cooking of a package. It should be noted that in the case of libX11, the name of the source archive becomes $SOURCE-$VERSION.tar.gz.
  
   * **$PROVIDE :** Some packages offer the same functionality,​ for instance the web server was at first lighttpd; now apache is available. All packages dependent on a web server refer to lighttpd. The //​PROVIDE="​lighttpd"//​ variable in the apache recipe states that packages dependent on lighttpd do not need to install the lighttpd package if apache is already on the system. Some packages may vary according to the webserver you choose, ie. the php package is dependent on lighttpd, as is php-apache on apache. The //​PROVIDE="​php:​apache"//​ in the apache recipe says that you must install php-apache instead of php, if apache is already on the system. Therefore each package dependent on php will install either php-apache or php according to the webserver on the system. This variable also chooses packages compiled with different options. The //​PROVIDE="​epdfview:​cups"//​ in the epdfview-cups recipe allows you to install epdfview with printer support via cups if cups is already on the system. \\   * **$PROVIDE :** Some packages offer the same functionality,​ for instance the web server was at first lighttpd; now apache is available. All packages dependent on a web server refer to lighttpd. The //​PROVIDE="​lighttpd"//​ variable in the apache recipe states that packages dependent on lighttpd do not need to install the lighttpd package if apache is already on the system. Some packages may vary according to the webserver you choose, ie. the php package is dependent on lighttpd, as is php-apache on apache. The //​PROVIDE="​php:​apache"//​ in the apache recipe says that you must install php-apache instead of php, if apache is already on the system. Therefore each package dependent on php will install either php-apache or php according to the webserver on the system. This variable also chooses packages compiled with different options. The //​PROVIDE="​epdfview:​cups"//​ in the epdfview-cups recipe allows you to install epdfview with printer support via cups if cups is already on the system. \\
Line 90: Line 90:
 === compile_rules() === === compile_rules() ===
  
-To compile a package you can use the variable $src to move (cd) in the directory of sources and use $CONFIGURE_ARGS to include arguments from the Cookutils configuration file. To build the package you usually launch '​make'​ without any arguments, and to install the package into the directory ​install: it's necessary to use the command 'make DESTDIR=$DESTDIR install'​. Generic example:+To compile a package you can use the variable $src to move (cd) in the directory of sources and use $CONFIGURE_ARGS to include arguments from the Cookutils configuration file. To build the package you usually launch '​make'​ without any arguments, and to install the package into the directory ​''​$DESTDIR''​: it's necessary to use the command ​''make DESTDIR=$DESTDIR install''. Generic example:
  
 <file bash> <file bash>
 
en/cookbook/receipt.txt ยท Last modified: 2017/04/24 17:05 by hgt