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/embree/PKGBUILD | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'community/embree') diff --git a/community/embree/PKGBUILD b/community/embree/PKGBUILD index ee543197..522a3482 100644 --- a/community/embree/PKGBUILD +++ b/community/embree/PKGBUILD @@ -15,7 +15,13 @@ eval "$( # applying a counter-patch here source+=('embree-3.2.0-intrinsic.patch') sha256sums+=('7d5e44a034b02e14d7d37cd038d8c279d13d66b54a449c09e0687458f117723f') -prepare() { - cd $pkgname-$pkgver - patch -Np1 -i "$srcdir/embree-3.2.0-intrinsic.patch" -} +eval "$( + { + declare -f prepare || \ + printf 'prepare() {\n}\n' + } \ + | sed ' + $i cd "$srcdir/$pkgname-$pkgver" \ + patch -Np1 -i "$srcdir/embree-3.2.0-intrinsic.patch" + ' +)" -- cgit v1.2.3-70-g09d2