Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-28 21:04:45 +0100
committerErich Eckner <git@eckner.net>2019-12-28 21:04:45 +0100
commit8ec6421f8e7107b3a596a87a75bc1cdc39586c68 (patch)
tree7d916fe08c2664ff21d343bee9cde7d0684185d9 /community
parentb48825a871482f13e49cd849b50d439b1a48c584 (diff)
community/pacman-contrib: do not replace existing prepare()
Diffstat (limited to 'community')
-rw-r--r--community/pacman-contrib/PKGBUILD10
1 files changed, 6 insertions, 4 deletions
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"
+ '
+)"