diff --git a/crew b/crew index 304e809b7..e40b28515 100755 --- a/crew +++ b/crew @@ -370,6 +370,8 @@ def build_and_preconfigure (target_dir) Dir.chdir target_dir do puts "Building from source, this may take a while..." @pkg.in_build = true + @pkg.preinstall + @pkg.patch @pkg.build @pkg.in_build = false system "rm -rf #{CREW_DEST_DIR}/*" #wipe crew destdir diff --git a/lib/package.rb b/lib/package.rb index b43e33c08..62ec71163 100644 --- a/lib/package.rb +++ b/lib/package.rb @@ -69,6 +69,16 @@ class Package @is_fake end + # Function to perform pre-install operations prior to build from source. + def self.preinstall + + end + + # Function to perform patch operations prior to build from source. + def self.patch + + end + # Function to perform build from source. def self.build