Commit 251dce53 authored by Michael Zuo's avatar Michael Zuo Committed by Timo Teräs
Browse files

abuild: use standard-issue prepare by default

A majority of APKBUILDs currently use exactly the prepare() provided by
newapkbuild verbatim, even for packages where no patches exist, which
has created the expectation that patches listed as sources are applied
by default.

This rev simply adds that default prepare() to abuild (and exposes it as
default_prepare), with no configurability. If needed, default behaviour
can be overridden by providing explicitly prepare().
parent 578ab740
......@@ -528,8 +528,21 @@ getpkgver() {
default_prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
msg "$i"
patch -p1 -i "$srcdir/$i" || return 1
prepare() {
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