mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Merge pull request #1218 from uberhacker/add-preinstall-patch-functions
Add preinstall and patch functions to package.rb
This commit is contained in:
2
crew
2
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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user