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 /extra/rust/PKGBUILD | |
parent | 94137ec4cf90744b3635606cee8c0e9f6e4de2eb (diff) |
-rw-r--r-- | extra/rust/PKGBUILD | 13 |
diff --git a/extra/rust/PKGBUILD b/extra/rust/PKGBUILD index bc6f5edc..0ab950b8 100644 --- a/extra/rust/PKGBUILD +++ b/extra/rust/PKGBUILD @@ -7,8 +7,15 @@ eval "$( declare -f prepare | \ sed ' $ i patch -p1 -i "$srcdir/config.toml.patch" - /}/ i sed -i "s/pentium4/pentium3/g" "$srcdir/rustc-$pkgver-src/vendor/rustc-ap-rustc_target/spec/i686_unknown_linux_gnu.rs" - /}/ i sed -i "s/pentium4/pentium3/g" "$srcdir/rustc-$pkgver-src/src/librustc_target/spec/i686_unknown_linux_gnu.rs" - /}/ i sed -i "s/254a116e0cfbce81d1d38ddd59e1086228332746ae8916647b990dd8226079d3/30594a90c83b496630d0b8d80ce2f93671ab6afedadcdc79afd832f4dfe499fd/g" "$srcdir/rustc-$pkgver-src/vendor/rustc-ap-rustc_target/.cargo-checksum.json" ' )" +if [ "${CARCH}" != 'pentium4' ]; then + eval "$( + declare -f prepare | \ + sed ' + $ i sed -i "s/pentium4/pentium3/g" "$srcdir/rustc-$pkgver-src/vendor/rustc-ap-rustc_target/spec/i686_unknown_linux_gnu.rs" + $ i sed -i "s/pentium4/pentium3/g" "$srcdir/rustc-$pkgver-src/src/librustc_target/spec/i686_unknown_linux_gnu.rs" + $ i sed -i "s/254a116e0cfbce81d1d38ddd59e1086228332746ae8916647b990dd8226079d3/30594a90c83b496630d0b8d80ce2f93671ab6afedadcdc79afd832f4dfe499fd/g" "$srcdir/rustc-$pkgver-src/vendor/rustc-ap-rustc_target/.cargo-checksum.json" + ' + )" +fi |