Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/pacman/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-17 10:54:17 +0200
committerErich Eckner <git@eckner.net>2019-04-17 10:54:17 +0200
commitd22b6ef090d62a0d70d9312f6af3267db04f3c0a (patch)
tree2f419a916796104ad0d5eb91937655fda3ce0836 /core/pacman/PKGBUILD
parent94137ec4cf90744b3635606cee8c0e9f6e4de2eb (diff)
most patches for i686 should/can be applied for pentium4, too
Diffstat (limited to 'core/pacman/PKGBUILD')
-rw-r--r--core/pacman/PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/pacman/PKGBUILD b/core/pacman/PKGBUILD
index ce92903a..f75db89a 100644
--- a/core/pacman/PKGBUILD
+++ b/core/pacman/PKGBUILD
@@ -12,14 +12,13 @@ for ((i=0; i<${#sha256sums[@]}; i++)); do
fi
done
-# i486-specific
-if [ "${CARCH}" = "i486" ]; then
+if [ ! "${CARCH}" = "i686" ]; then
# patch architecture where needed
eval "$(
declare -f package | \
sed '
/install.*makepkg.conf/ a \
- sed -i "s@i686@i486@g" "$pkgdir/etc/makepkg.conf"
+ sed -i "s@i686@'"${CARCH}"'@g" "$pkgdir/etc/makepkg.conf"
'
)"
fi