repo-automation/blendos-repo-automation.sh
askiiart f819faa6b3
All checks were successful
continuous-integration/drone Build is passing
add old package removal
2024-11-08 18:44:09 -06:00

82 lines
2.1 KiB
Bash
Executable file

#!/usr/bin/env bash
echo '
[askiiart]
SigLevel = Optional
Server = https://askiiart.net/repos/archlinux/$arch' | sudo tee -a /etc/pacman.conf
sudo pacman -Sy
sudo mkdir /var/log/makepkg/
sudo chown builder /var/log/makepkg/
chmod -R 777 /var/log/makepkg/
mkdir /tmp/arch-workdir/
echo "PKGDEST=/repo/
LOGDEST=/var/log/makepkg/" >~/.makepkg.conf
cd /tmp/arch-workdir
git clone https://git.askiiart.net/askiiart-blendos/akshara
cd ./akshara/
git switch packaging
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./akshara/
git clone https://git.askiiart.net/askiiart-blendos/blend
cd ./blend/
git switch packaging
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./blend/
git clone https://git.askiiart.net/askiiart-blendos/blend-inst
cd ./blend-inst/
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./blend-inst/
git clone https://github.com/blend-os/blend-web-store-pkg
cd ./blend-web-store-pkg/
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./blend-web-store-pkg/
git clone https://git.blendos.co/blendOS/packaging/filesystem-blend.git
cd ./filesystem-blend/
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./filesystem-blend/
git clone https://git.blendos.co/blendOS/packaging/blendos-wallpapers.git
cd ./blendos-wallpapers/
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./blendos-wallpapers/
git clone https://git.blendos.co/blendOS/packaging/jade-gui.git
cd ./jade-gui/
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./jade-gui/
git clone https://git.blendos.co/blendOS/packaging/jade-gui-postinst
cd ./jade-gui-postinst/
makepkg -s -c -C --noconfirm --noprogressbar
cd ..
rm -rf ./jade-gui-postinst/
git clone https://github.com/guydunigo/remove_old_arch_pkgs
cd ./remove_old_arch_pkgs
sudo pacman -S cargo --noconfirm --needed
cargo run -- -0 /repo/
cd ..
cd /repo/
rm -rf /tmp/arch-workdir
rm ./askiiart*
repo-add ./askiiart.db.tar.zst $(find . -name "*.tar.zst" ! -name "breakfast*" ! -name "askiiart*")
for item in $(find . -name "askiiart*"); do
item=${item:10}
ln -sf askiiart$item breakfast$item
done