# HG changeset patch # User Christophe Lincoln # Date 1397771831 -7200 # Node ID 82eaf5faefb9de0015eba19715d75cc22cecd1e6 # Parent 00747f5812f99d4297eb304de86b63e4d0e9aab8 cook: introduce receipts functions diff -r 00747f5812f9 -r 82eaf5faefb9 cook --- a/cook Sat Apr 05 11:15:30 2014 +0000 +++ b/cook Thu Apr 17 23:57:11 2014 +0200 @@ -1029,6 +1029,19 @@ } # +# Receipt functions to ease packaging +# + +get_dev_files() { + _n "Getting standard devel files..." + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/include $fs/usr + status +} + +# # Commands # diff -r 00747f5812f9 -r 82eaf5faefb9 doc/cookutils.en.html --- a/doc/cookutils.en.html Sat Apr 05 11:15:30 2014 +0000 +++ b/doc/cookutils.en.html Thu Apr 17 23:57:11 2014 +0200 @@ -174,6 +174,16 @@ # cook search busybox +

Receipt functions

+

+ Many packages provide to same kind of files such as *-dev packages + with static libs, pkgconfig file and include headers. So cook provie + function to be used in receipt: +

+
+get_dev_files     : Install /usr/lib/{lib.*a,pkgconfig} /usr/include
+
+

Packages DB list

Cook can list packages in the wok and also create a suitable packages list