repo-automation/blendos-repo-automation.sh

92 lines
2.2 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
prep() {
sudo mkdir /var/log/makepkg/
sudo chown builder /var/log/makepkg/
chmod -R 777 /var/log/makepkg/
echo "PKGDEST=/repo/
LOGDEST=/var/log/makepkg/" >~/.makepkg.conf
echo '[multilib]
Include = /etc/pacman.d/mirrorlist
[askiiart]
Server = https://askiiart.net/repos/archlinux/$arch
SigLevel = Optional' | sudo tee -a /etc/pacman.conf
2024-11-27 22:39:49 -06:00
sudo pacman -Syu
mkdir /tmp/arch-workdir/
chmod -R 777 /tmp/arch-workdir/
}
build_aur_package() {
cd /tmp/arch-workdir/
mkdir ./$1
cd ./$1
zbuilder.sh $1
rm -rf ~/source
}
prep
build_aur_package 'paru'
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/
2024-10-02 22:25:00 -05:00
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/
2024-11-11 22:51:28 -06:00
#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 ..
2024-11-08 18:44:09 -06:00
cd /repo/
2024-11-08 18:44:09 -06:00
rm -rf /tmp/arch-workdir
2024-11-20 14:49:59 -06:00
repo-add -Rp ./breakfast.db.tar.zst $(find . -name "*.tar.zst" ! -name "breakfast*")