From 8ec6421f8e7107b3a596a87a75bc1cdc39586c68 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 28 Dec 2019 21:04:45 +0100 Subject: community/pacman-contrib: do not replace existing prepare() --- community/pacman-contrib/PKGBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'community/pacman-contrib') diff --git a/community/pacman-contrib/PKGBUILD b/community/pacman-contrib/PKGBUILD index 3b82e161..1bf49594 100644 --- a/community/pacman-contrib/PKGBUILD +++ b/community/pacman-contrib/PKGBUILD @@ -1,7 +1,9 @@ source+=('rankmirror.sh.diff') sha256sums+=('7a0fe662825d70decaa613a6d6104c39b3046f4ac710dc0c974316c671af35da') -prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" - patch -p1 -i "${srcdir}/rankmirror.sh.diff" -} +eval "$( + declare -f prepare \ + | sed ' + $ i patch -p1 -i "${srcdir}/rankmirror.sh.diff" + ' +)" -- cgit v1.2.3-70-g09d2