adding further optimizations...
friggin' aur maintainers.
This commit is contained in:
parent
6b6cab416a
commit
b2fb3e34c3
@ -157,7 +157,7 @@ lsscsi
|
|||||||
lxde
|
lxde
|
||||||
lynx
|
lynx
|
||||||
lz4
|
lz4
|
||||||
lzip
|
#lzip
|
||||||
lzo
|
lzo
|
||||||
lzop
|
lzop
|
||||||
macchanger
|
macchanger
|
||||||
|
@ -40,6 +40,7 @@ function jenny_craig () {
|
|||||||
# DISABLE when no longer building custom kernel
|
# DISABLE when no longer building custom kernel
|
||||||
find ${BUILDDIR}/usr/lib/modules/ -maxdepth 1 -iname "*-ARCH" -exec rm -rf '{}' \;
|
find ${BUILDDIR}/usr/lib/modules/ -maxdepth 1 -iname "*-ARCH" -exec rm -rf '{}' \;
|
||||||
find ${BUILDDIR}/ -type f -name "*.pacnew" -exec rm -rf '{}' \;
|
find ${BUILDDIR}/ -type f -name "*.pacnew" -exec rm -rf '{}' \;
|
||||||
|
sed -i -e '/^MAKEFLAGS=.*$/d' ${BUILDDIR}/etc/makepkg.conf
|
||||||
rm -rf ${BUILDDIR}/usr/share/locale/*
|
rm -rf ${BUILDDIR}/usr/share/locale/*
|
||||||
mv -f ${BUILDDIR}/tmp/locale.alias ${BUILDDIR}/usr/share/locale/.
|
mv -f ${BUILDDIR}/tmp/locale.alias ${BUILDDIR}/usr/share/locale/.
|
||||||
rm -rf ${BUILDDIR}/var/cache/pacman/*
|
rm -rf ${BUILDDIR}/var/cache/pacman/*
|
||||||
|
@ -181,6 +181,15 @@ EOF
|
|||||||
${CHROOTCMD} ${CHROOTDIR64}/ 'pacman --noconfirm -R gcc-libs libtool' >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${CHROOTDIR64}/ 'pacman --noconfirm -R gcc-libs libtool' >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
${CHROOTCMD} ${CHROOTDIR64}/ 'pacman --noconfirm -S multilib-devel' >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${CHROOTDIR64}/ 'pacman --noconfirm -S multilib-devel' >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# And let's do some more optimization.
|
||||||
|
if [[ "${I_AM_A_RACECAR}" == "y" ]];
|
||||||
|
then
|
||||||
|
CPUCNT=$(grep processor /proc/cpuinfo | wc -l)
|
||||||
|
((CPUCNT++))
|
||||||
|
sed -i -e "/^[[:space:]]*#*MAKEFLAGS=.*$/aMAKEFLAGS=\"-j${CPUCNT}\"" ${CHROOTDIR64}/etc/makepkg.conf
|
||||||
|
sed -i -e "/^[[:space:]]*#*MAKEFLAGS=.*$/aMAKEFLAGS=\"-j${CPUCNT}\"" ${CHROOTDIR32}/etc/makepkg.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# preprocessing
|
# preprocessing
|
||||||
sed -i -e '/base-devel/d ; /multilib-devel/d' ${BASEDIR}/extra/packages.*
|
sed -i -e '/base-devel/d ; /multilib-devel/d' ${BASEDIR}/extra/packages.*
|
||||||
|
Loading…
Reference in New Issue
Block a user