Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/rust/PKGBUILD
blob: 14d3c06152fe48ca0b8ae6d9ac4052923303ac23 (plain)
1
2
3
4
5
6
7
8
9
10
11
source+=(config.toml.patch)
sha256sums+=('55d59786b6a24590951688c01910ac331996fc5ea5e20f10d227db24b93b1e74')

eval "$(
  declare -f prepare | \
    sed '
      $ i patch -p1 -i "$srcdir/config.toml.patch"
      /}/ i sed -i "s/pentium4/pentium3" "$srcdir/rustc-$pkgver-src/vendor/rustc-ap-rustc_target/spec/i686_unknown_linux_gnu.rs"
      /}/ i sed -i "s/pentium4/pentium3" "$srcdir/rustc-$pkgver-src/src/librustc_target/spec/i686_unknown_linux_gnu.rs"
    '
)"