diff options
-rw-r--r-- | extra/graphene/PKGBUILD | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/graphene/PKGBUILD b/extra/graphene/PKGBUILD new file mode 100644 index 00000000..692e4c8e --- /dev/null +++ b/extra/graphene/PKGBUILD @@ -0,0 +1,17 @@ +# enable SSE2 optimizations only on pentium4 +if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then + eval "$( + declare -f build | \ + sed ' + s/arch-meson/arch-meson -D sse2=false/ + ' + )" +fi +if [ "$CARCH" = 'pentium4' ]; then + eval "$( + declare -f build | \ + sed ' + s/arch-meson/arch-meson -D sse2=true/ + ' + )" +fi |