[Lunar-commits] <moonbase> unrar: add validate_source_dir

Paul Bredbury brebs at lunar-linux.org
Mon Aug 31 18:38:27 CEST 2009


commit 7a65dcca7c08b71325c065b68680b597bef83930
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Mon Aug 31 23:38:27 2009 +0700

    unrar: add validate_source_dir
    
    As the standard safety check.
---
 archive/unrar/BUILD     |    6 ++++--
 archive/unrar/PRE_BUILD |    7 ++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/archive/unrar/BUILD b/archive/unrar/BUILD
index 32209a7..438df72 100644
--- a/archive/unrar/BUILD
+++ b/archive/unrar/BUILD
@@ -1,6 +1,6 @@
 (
 
-  export CXXFLAGS+=" -fPIC"
+  export CXXFLAGS+=" -fPIC" &&
   cd unrar &&
   cp makefile.unix Makefile &&
   make clean &&
@@ -10,7 +10,9 @@
   prepare_install &&
   make install-unrar &&
   make install-lib &&
-  install default.sfx /usr/lib &&
+  install default.sfx /usr/lib/ &&
+
+  # Needed because gather_docs is confused by PRE_BUILD
   mkdir -p $DOCUMENT_DIRECTORY/unrar &&
   cp readme.txt license.txt $DOCUMENT_DIRECTORY/unrar
 
diff --git a/archive/unrar/PRE_BUILD b/archive/unrar/PRE_BUILD
index e6a4d28..d8184db 100644
--- a/archive/unrar/PRE_BUILD
+++ b/archive/unrar/PRE_BUILD
@@ -1,3 +1,4 @@
-mk_source_dir  $SOURCE_DIRECTORY  &&
-cd             $SOURCE_DIRECTORY  &&
-unpack         $SOURCE
+validate_source_dir $SOURCE_DIRECTORY  &&
+mk_source_dir       $SOURCE_DIRECTORY  &&
+cd                  $SOURCE_DIRECTORY  &&
+unpack              $SOURCE


More information about the Lunar-commits mailing list