Skip to content

Commit

Permalink
Merge pull request #33 from Samueru-sama/main
Browse files Browse the repository at this point in the history
remove more bloats for the 20th time
  • Loading branch information
ivan-hc committed Sep 8, 2024
2 parents 28eb4b3 + c795050 commit b19cf9b
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions create-arch-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,22 +364,22 @@ fi
#run_in_chroot locale-gen

# Remove unneeded packages
run_in_chroot pacman --noconfirm -Rsu base-devel meson mingw-w64-gcc cmake gcc gtk4
run_in_chroot pacman --noconfirm -Rsu base-devel meson mingw-w64-gcc cmake gcc gtk4 git guile
run_in_chroot pacman --noconfirm -Rdd wine-staging
run_in_chroot pacman --noconfirm -Scc


# Generate a list of installed packages
run_in_chroot pacman -Q > "${bootstrap}"/pkglist.x86_64.txt

# Use locale from host
run_in_chroot rm -f "${bootstrap}"/etc/locale.conf
run_in_chroot sed -i 's/LANG=${LANG:-C}/LANG=$LANG/g' /etc/profile.d/locale.sh

# Remove bloatwares
run_in_chroot pacman --noconfirm -Rsndd gcc yay pacman systemd
run_in_chroot pacman --noconfirm -Rsndd gcc yay systemd git autoconf automake
run_in_chroot pacman -Qdtq | run_in_chroot pacman --noconfirm -Rsn -
run_in_chroot pacman --noconfirm -Rsndd pacman

# Generate a list of installed packages
run_in_chroot pacman -Q > "${bootstrap}"/pkglist.x86_64.txt

# Remove more bloatwares
run_in_chroot rm -Rf /usr/include /usr/share/man /usr/share/gtk-doc /usr/lib/gcc /usr/bin/gcc*
run_in_chroot bash -c 'find "${bootstrap}"/usr/share/doc/* -not -iname "*steam*" -a -not -name "." -delete'
run_in_chroot bash -c 'find "${bootstrap}"/usr/share/locale/*/*/* -not -iname "*steam*" -a -not -name "." -delete'
Expand All @@ -394,14 +394,23 @@ rm -rf "${bootstrap}"/usr/lib32/libgo.so*
rm -rf "${bootstrap}"/usr/lib32/libgphobos.so*
rm -rf "${bootstrap}"/usr/share/ibus/dicts/emoji*
rm -rf "${bootstrap}"/usr/share/perl*
rm -rf "${bootstrap}"/usr/lib/guile
rm -rf "${bootstrap}"/usr/lib/systemd
rm -rf "${bootstrap}"/usr/share/info
rm -rf "${bootstrap}"/usr/share/autoconf
rm -rf "${bootstrap}"/usr/share/automake
rm -rf "${bootstrap}"/usr/share/git*
rm -rf "${bootstrap}"/usr/share/pacman
rm -rf "${bootstrap}"/usr/share/help/*
rm -rf "${bootstrap}"/usr/share/gir-1.0
rm -rf "${bootstrap}"/var/lib/pacman/*
strip --strip-debug "${bootstrap}"/usr/lib/*
strip --strip-debug "${bootstrap}"/usr/lib32/*
strip --strip-unneeded "${bootstrap}"/usr/bin/*
rm -f "${bootstrap}"/usr/bin/yay
rm -f "${bootstrap}"/usr/bin/git*
rm -f "${bootstrap}"/usr/bin/systemd*
rm -f "${bootstrap}"/usr/bin/pacman*
strip --strip-debug "${bootstrap}"/usr/lib/* 2>/dev/null
strip --strip-debug "${bootstrap}"/usr/lib32/* 2>/dev/null
strip --strip-unneeded "${bootstrap}"/usr/bin/* 2>/dev/null

# Check if the command we are interested in has been installed
if ! run_in_chroot which steam-screensaver-fix-runtime; then echo "Command not found, exiting." && exit 1; fi
Expand Down

0 comments on commit b19cf9b

Please sign in to comment.