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

Add preinstall and patch functions to package.rb
This commit is contained in:
Casey Strouse
2017-11-02 19:17:12 -07:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

2
crew
View File

@@ -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

View File

@@ -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