PKGBUILD: Pass _custom_pkgbase as version tail when set

This commit is contained in:
Tk-Glitch
2023-08-03 03:29:07 +02:00
parent eb0fda3198
commit 61b9172388

View File

@@ -604,8 +604,13 @@ _tkg_srcprep() {
fi fi
if [ "${_distro}" = "Arch" ]; then if [ "${_distro}" = "Arch" ]; then
echo "-$pkgrel-tkg-${_cpusched}${_compiler_name}" > localversion.10-pkgrel if [ -n "$_custom_pkgbase" ]; then
echo -e "Version tail set to \"-$pkgrel-tkg-${_cpusched}${_compiler_name}\"\n" > "$_where"/logs/prepare.log.txt echo "-$pkgrel-tkg-${_custom_pkgbase}" > localversion.10-pkgrel
echo -e "Version tail set to \"-$pkgrel-tkg-${_custom_pkgbase}\"\n" > "$_where"/logs/prepare.log.txt
else
echo "-$pkgrel-tkg-${_cpusched}${_compiler_name}" > localversion.10-pkgrel
echo -e "Version tail set to \"-$pkgrel-tkg-${_cpusched}${_compiler_name}\"\n" > "$_where"/logs/prepare.log.txt
fi
echo "" > localversion.20-pkgname echo "" > localversion.20-pkgname
fi fi