summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Blakeney2021-07-18 08:13:17 +1000
committerMark Blakeney2021-07-18 08:13:17 +1000
commitcf353cd6c0d0757c4bbfb21180bb2baa5181ddf2 (patch)
tree4e2853c3a41c4e3dc27efe34c4759d97065f22cf
parenteba08d88b58479afef114f4335f14621afdb98e7 (diff)
downloadaur-cf353cd6c0d0757c4bbfb21180bb2baa5181ddf2.tar.gz
Fix legacy AMD 64 bit CPU check
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 36b462233cd..cc7d43ba47d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
pkg/
src/
*.tar
+*.tar.*
*.zip
*.[gx]z
diff --git a/PKGBUILD b/PKGBUILD
index af84629ebe4..1d81da49a5d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,9 +25,9 @@ build() {
_arch=armv7
elif [[ "$CARCH" == "i686" ]]; then
_arch=x86-32
- elif grep -q bmi2 /proc/cpuinfo; then
+ elif grep -wq bmi2 /proc/cpuinfo; then
_arch=x86-64-bmi2
- elif grep -q popcnt /proc/cpuinfo; then
+ elif grep -w popcnt /proc/cpuinfo | grep -wqv cr8_legacy; then
_arch=x86-64-modern
else
_arch=x86-64