Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-02-14 06:16:20 +0100
committerErich Eckner <git@eckner.net>2023-02-14 06:16:20 +0100
commitcbb337a220e3bdf63c706af82097e315006ba697 (patch)
tree0986c5f22f5fb24233d0d9b96aed5e57178787fe /extra
parentf7dc0a31cf3d52cc5f0c73a5303021b23151b8f6 (diff)
extra/protobuf: guard patch against missing prepare()
Diffstat (limited to 'extra')
-rw-r--r--extra/protobuf/PKGBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/extra/protobuf/PKGBUILD b/extra/protobuf/PKGBUILD
index 9e67a5b0..34eb56cb 100644
--- a/extra/protobuf/PKGBUILD
+++ b/extra/protobuf/PKGBUILD
@@ -12,7 +12,10 @@ _prepare() {
}
eval "$(
- declare -f prepare | \
+ {
+ declare -f prepare || \
+ echo 'prepare()'
+ } | \
sed '$ i _prepare'
)"