From 5d65d4762c5cb5c8e65ca73a600b2bdf5fa8ead7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 1 Oct 2008 05:27:15 +0200 Subject: [PATCH] Add a not so useful "HOW TO MAKE TEMPLATES" section. --HG-- extra : convert_revision : c6c7012bdec2666685c2b3f5578fdcbd800470bd --- README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README b/README index b67f957b040..ffd31bde406 100644 --- a/README +++ b/README @@ -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