Commit af7d2cf7 authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #1218 from uberhacker/add-preinstall-patch-functions

Add preinstall and patch functions to package.rb
parents f030aa5f 25b689c9
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment