Commit 3b7ab34e authored by Natanael Copa's avatar Natanael Copa

abuild: implement prepare()

prepare is run before build(). this allows uses to do patching before
configuring and building in a separate step.
parent f138d670
...@@ -291,6 +291,10 @@ runpart() { ...@@ -291,6 +291,10 @@ runpart() {
} }
# override those in your build script # override those in your build script
prepare() {
:
}
build() { build() {
: :
} }
...@@ -508,7 +512,7 @@ create_apks() { ...@@ -508,7 +512,7 @@ create_apks() {
apkcache() { apkcache() {
if ! apk_up2date || [ -n "$force" ]; then if ! apk_up2date || [ -n "$force" ]; then
sanitycheck && builddeps && clean && fetch && unpack \ sanitycheck && builddeps && clean && fetch && unpack \
&& mkusers && rootpkg || return 1 && prepare && mkusers && rootpkg || return 1
fi fi
local apk local apk
......
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