Use -O3
and -march=native
(or -mtune=native
if you want to distribute
packages to other computers) in your /etc/makepkg.conf
for maximum performance.
These PKGBUILDs are mostly modified from Arch Linux official repo, AUR and Arch-Data-Science.