chore: update path for linux-xanmod

This commit is contained in:
MedzikUser 2022-05-20 14:35:39 +02:00
parent dd90ab32b2
commit 50b4b754d2
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 9 additions and 11 deletions

View File

@ -43,6 +43,15 @@ patches() {
echo "[i] march patch"
sed -i 's|-march=nocona -mtune=core-avx2|-march=x86-64-v3|g' PKGBUILD
;;
"linux-xanmod"*)
export _microarchitecture=93
;;
esac
else
case "${pkgname}" in
"linux-xanmod"*)
export _microarchitecture=0
;;
esac
fi
}
@ -97,17 +106,6 @@ built() {
fi
done
# custom env for AUR packages
if [[ "${pkgname}" = "linux-xanmod"* ]]
then
if [ "${BUILD_ARCH}" = "x86-64-v3" ]
then
export _microarchitecture=93
else
export _microarchitecture=0
fi
fi
SOURCE_DATE_EPOCH=$(cat /etc/buildtime) BUILDDIR="${BUILD_DIR}/makepkg" PKGDEST="${OUT_DIR}" makepkg ${MAKEPKG_BUILD_FLAGS}
EXIT_CODE="${?}"