Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=f0aa98271240f556c6e77caab8b2d0275b0b998c
commit f0aa98271240f556c6e77caab8b2d0275b0b998c
Author: VMiklos <[EMAIL PROTECTED]>
Date: Wed Sep 5 00:43:34 2007 +0200
docs/makepkg: a section about USE_DEVEL
diff --git a/docs/makepkg.txt b/docs/makepkg.txt
index 3dff180..bd289b3 100644
--- a/docs/makepkg.txt
+++ b/docs/makepkg.txt
@@ -144,6 +144,33 @@ parallel build / one user'.
(See man makepkg for more info about the benefits of building in a chroot).
+== Use variables
+
+You can alter the result of the build process using environment variables
+without touching the FrugalBuild itself. The `git` package is a good example.
+Using
+
+-----------------------------------
+$ USE_DEVEL=y sudo makepkg [<options>]
+-----------------------------------
+
+for that package results in a build of git's development version. Here is what
+you need if you want so for your package:
+
+----
+# set the variable to false by default
+USE_DEVEL=${USE_DEVEL:-"n"}
+
+(...)
+
+# these commands will be evaluated only in case USE_DEVEL is set to true
+if Fuse $USE_DEVEL; then
+ _F_scm_type="git"
+ _F_scm_url="git://git.kernel.org/pub/scm/git/git.git"
+ Finclude scm
+fi
+----
+
In the next section we will see an example for a simple FrugalBuild script.
== A simple example
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git