summaryrefslogtreecommitdiff
path: root/community/vamp-aubio-plugins
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-03-05 10:12:42 +0100
committerErich Eckner <git@eckner.net>2020-03-05 10:12:42 +0100
commit2daf5647b6961ff6281d5c89b50783e5258a6b4b (patch)
tree0ff7915683c1d5e0095605912940f94cb65c1643 /community/vamp-aubio-plugins
parent3271f6ab8a92141c0e6e696b327198795f611006 (diff)
downloadpackages-2daf5647b6961ff6281d5c89b50783e5258a6b4b.tar.xz
do not overwrite prepare if it already existed
Diffstat (limited to 'community/vamp-aubio-plugins')
-rw-r--r--community/vamp-aubio-plugins/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/community/vamp-aubio-plugins/PKGBUILD b/community/vamp-aubio-plugins/PKGBUILD
index c07e32f7..7d884b2e 100644
--- a/community/vamp-aubio-plugins/PKGBUILD
+++ b/community/vamp-aubio-plugins/PKGBUILD
@@ -1,5 +1,11 @@
-prepare() {
- sed -i '
- 48 s/x86_64/i686/
- ' vamp-aubio-plugins-0.5.1/wscript
-}
+eval "$(
+ {
+ declare -f prepare || \
+ printf 'prepare() {\n}\n'
+ } \
+ | sed '
+ $i sed -i '"'"' \
+ 48 s/x86_64/i686/ \
+ '"'"' vamp-aubio-plugins-0.5.1/wscript
+ '
+)"