index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-04-04 08:56:36 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-04-04 08:56:36 +0200 |
commit | 3dcb46e2e5510696c5cc3bb26c688061dfbc27be (patch) | |
tree | 93911eb61bf368ae058c81bb9dd3cb29697e1e7c /extra/librsvg/PKGBUILD | |
parent | d86430903c5619e59930bf80c02fe1637edfa522 (diff) |
-rw-r--r-- | extra/librsvg/PKGBUILD | 37 |
diff --git a/extra/librsvg/PKGBUILD b/extra/librsvg/PKGBUILD index f5585f33..f9827542 100644 --- a/extra/librsvg/PKGBUILD +++ b/extra/librsvg/PKGBUILD @@ -1,12 +1,23 @@ # target Pentium 3 without SSE2 +if [ "$CARCH" = 'i686' ]; then + eval "$( + declare -f prepare | \ + sed ' + /autogen.sh/ i sed -i \"s/\\\$(CARGO).* build/RUSTFLAGS=\\"-C target-cpu=pentium2 -C target-feature=-sse2\\" \\0/g\" Makefile.am + ' + )" +fi +# pentium4: target pentium3 with SSE2 +if [ "$CARCH" = 'pentium4' ]; then + eval "$( + declare -f prepare | \ + sed ' + /autogen.sh/ i sed -i \"s/\\\$(CARGO).* build/RUSTFLAGS=\\"-C target-cpu=pentium3\\" \\0/g\" Makefile.am + ' + )" +fi -eval "$( - declare -f prepare | \ - sed ' - /autogen.sh/ i sed -i \"s/\\\$(CARGO).* build/RUSTFLAGS=\\"-C target-cpu=pentium3 -C target-feature=-sse2\\" \\0/g\" Makefile.am - ' -)" - +# do not kill slaves with massive parallel rust builds eval "$( declare -f build | \ sed ' @@ -23,15 +34,3 @@ eval "$( s/make check/make check || true/ ' )" - -# use rust, not rustup, compiled rustc uses pentium3, non-SSE2 optimizations, -# no clue what we get with rustup! - -makedepends=(${makedepends[@]//rustup/}) - -eval "$( - declare -f prepare | \ - sed ' - s/rustup/#rustup/ - ' -)" |