Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/pacman-contrib
diff options
context:
space:
mode:
Diffstat (limited to 'community/pacman-contrib')
-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"
+ '
+)"