abuild: implement prepare()
prepare is run before build(). this allows uses to do patching before configuring and building in a separate step.
This commit is contained in:
parent
f138d6704b
commit
3b7ab34e67
@ -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() {
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user