obos-core-repos/repo-gen.sh
2023-08-08 21:22:55 -06:00

50 lines
No EOL
1 KiB
Bash
Executable file

#!/bin/bash
# building phase
rm ./x86_64/*.pkg.tar.zst
cd working
git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin
git pull
makepkg
mv ./*.pkg.tar.zst ../../x86_64
cd ..
git clone https://aur.archlinux.org/mkinitcpio-openswap.git
cd mkinitcpio-openswap
git pull
makepkg
mv ./*.pkg.tar.zst ../../x86_64
cd ..
git clone https://aur.archlinux.org/ckbcomp.git
cd ckbcomp
git pull
makepkg
mv ./*.pkg.tar.zst ../../x86_64
cd ..
git clone https://aur.archlinux.org/calamares.git
cd calamares
git pull
makepkg
mv ./*.pkg.tar.zst ../../x86_64
cd ..
git clone https://aur.archlinux.org/web-greeter.git
cd web-greeter
git pull
makepkg
mv ./*.pkg.tar.zst ../../x86_64
cd ../../
# packaging phase
# x86_64
rm ./x86_64/obos-core-repo.db
rm ./x86_64/obos-core-repo.files
repo-add ./x86_64/obos-core-repo.db.tar.gz ./x86_64/*.pkg.tar.zst
rm ./x86_64/obos-core-repo.db
rm ./x86_64/obos-core-repo.files
mv ./x86_64/obos-core-repo.files.tar.gz ./x86_64/obos-core-repo.files
mv ./x86_64/obos-core-repo.db.tar.gz ./x86_64/obos-core-repo.db