Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/libsndfile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-03-18 13:41:25 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2021-03-18 13:41:25 +0100
commit63934f777dbf9f87a177679899a9e2400ef5b4b4 (patch)
treee27c31ca94a2c57e801fe142ba18f1c76098cde9 /extra/libsndfile
parent4169851fa989f7e93258cae26a136c919b6642df (diff)
extra/libsndfile: more friendly prepare patching
Diffstat (limited to 'extra/libsndfile')
-rw-r--r--extra/libsndfile/PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/extra/libsndfile/PKGBUILD b/extra/libsndfile/PKGBUILD
index 00af685f..a49ae415 100644
--- a/extra/libsndfile/PKGBUILD
+++ b/extra/libsndfile/PKGBUILD
@@ -5,8 +5,13 @@ source_i686=('libsndfile-1.0.31-no-sse2.patch')
sha512sums_i686=('3088df360db3e8a86e9586597594db0a2c633504bb2453ff17e9bd062ce29a8773ec35426dfda9391eac72cccb2ca12dbab11915f9c4313283b858f756a85f0b')
if [ "$CARCH" == 'i686' ] || [ "$CARCH" == 'i486' ]; then
eval "$(
- prepare() {
- patch -p1 -i "$srcdir/libsndfile-1.0.31-no-sse2.patch"
- }
+ {
+ declare -f prepare || \
+ printf 'prepare() {\n}\n'
+ } \
+ | sed '
+ $i cd "${srcdir}/${pkgbase}-${pkgver}" \
+ patch -p1 -i "$srcdir/libsndfile-1.0.31-no-sse2.patch"
+ '
)"
fi