From 2daf5647b6961ff6281d5c89b50783e5258a6b4b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 5 Mar 2020 10:12:42 +0100 Subject: do not overwrite prepare if it already existed --- community/fig2dev/PKGBUILD | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'community/fig2dev') diff --git a/community/fig2dev/PKGBUILD b/community/fig2dev/PKGBUILD index b761add0..56b41da9 100644 --- a/community/fig2dev/PKGBUILD +++ b/community/fig2dev/PKGBUILD @@ -1,6 +1,12 @@ -prepare() { - find "${pkgname}-${pkgver}" \ - -exec sed -i ' - s/Invalid resolution information (-1)\./Invalid spline object./g - ' {} \; -} +eval "$( + { + declare -f prepare || \ + printf 'prepare() {\n}\n' + } \ + | sed ' + $i find "${srcdir}/${pkgname}-${pkgver}" \ + -exec sed -i '"'"' \ + s/Invalid resolution information (-1)\./Invalid spline object./g \ + '"'"' {} \; + ' +)" -- cgit v1.2.3