Add a not so useful "HOW TO MAKE TEMPLATES" section.

--HG--
extra : convert_revision : c6c7012bdec2666685c2b3f5578fdcbd800470bd
This commit is contained in:
Juan RP 2008-10-01 05:27:15 +02:00
parent d53b7c6dd3
commit 5d65d4762c
1 changed files with 22 additions and 0 deletions

22
README
View File

@ -85,5 +85,27 @@ versus pkgsrc (make install clean):
The difference in this package might not be too big as I might think... but
anyway, 12 seconds faster is not that bad.
------------------------------------------------------------------------------
HOW TO MAKE TEMPLATES
------------------------------------------------------------------------------
A template in pkgfs is just a small text file with a few variables that are
required to build the package. pkgfs should be easy to work on, and
making templates shouldn't be too hard... if you have made any pkgsrc, it
should be trivial.
The required variables are: pkgname, build_type, extract_sufx, url
and checksum. Also there are some optional, like make_cmd, wrksrc,
configure_args, configure_env, make_build_args, make_install_args, etc.
Please take a look at the example.tmpl file located in the templates/
directory.
Also to help you creating templates and dependencies, there's a script
that will ask you some required information and will create the template
file once the distfile is downloaded: mktmpl.sh.
Try it and let me know if you have any problem or suggestion.
------------------------------------------------------------------------------
Juan Romero Pardines <xtraeme@gmail.com>