index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-04-17 10:54:17 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-04-17 10:54:17 +0200 |
commit | d22b6ef090d62a0d70d9312f6af3267db04f3c0a (patch) | |
tree | 2f419a916796104ad0d5eb91937655fda3ce0836 /core/pacman/PKGBUILD | |
parent | 94137ec4cf90744b3635606cee8c0e9f6e4de2eb (diff) |
-rw-r--r-- | core/pacman/PKGBUILD | 5 |
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 |