cookutils rev 671

cook: introduce receipts functions
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 17 23:57:11 2014 +0200 (2014-04-17)
parents 00747f5812f9
children 8f0a394d1682
files cook doc/cookutils.en.html
line diff
     1.1 --- a/cook	Sat Apr 05 11:15:30 2014 +0000
     1.2 +++ b/cook	Thu Apr 17 23:57:11 2014 +0200
     1.3 @@ -1029,6 +1029,19 @@
     1.4  }
     1.5  
     1.6  #
     1.7 +# Receipt functions to ease packaging
     1.8 +#
     1.9 +
    1.10 +get_dev_files() {
    1.11 +	_n "Getting standard devel files..."
    1.12 +	mkdir -p $fs/usr/lib
    1.13 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.14 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.15 +	cp -a $install/usr/include $fs/usr
    1.16 +	status
    1.17 +}
    1.18 +
    1.19 +#
    1.20  # Commands
    1.21  #
    1.22  
     2.1 --- a/doc/cookutils.en.html	Sat Apr 05 11:15:30 2014 +0000
     2.2 +++ b/doc/cookutils.en.html	Thu Apr 17 23:57:11 2014 +0200
     2.3 @@ -174,6 +174,16 @@
     2.4  # cook search busybox
     2.5  </pre>
     2.6  
     2.7 +<h3>Receipt functions</h3>
     2.8 +<p>
     2.9 +	Many packages provide to same kind of files such as *-dev packages
    2.10 +	with static libs, pkgconfig file and include headers. So cook provie
    2.11 +	function to be used in receipt:
    2.12 +</p>
    2.13 +<pre>
    2.14 +get_dev_files     : Install /usr/lib/{lib.*a,pkgconfig} /usr/include
    2.15 +</pre>
    2.16 +
    2.17  <h3>Packages DB list</h3>
    2.18  <p>
    2.19  	Cook can list packages in the wok and also create a suitable packages list