Get makepkg working

This commit is contained in:
2025-02-26 19:56:14 -05:00
parent 731a442d7b
commit b2dcfe2b61
4 changed files with 39 additions and 7 deletions

28
run.sh
View File

@ -7,10 +7,32 @@ sudo sh -c 'echo "169.254.1.2 archmirror.i.balki.me" >> /etc/hosts'
sudo pacman -Syu
sudo chown --recursive builder:builder /w
yay_build() {
# not working yet
# rm-rf .git
makepkg --printsrcinfo > .SRCINFO
git config --global user.email "aur_builder@balki.me"
git config --global user.name "Balakrishnan Balasubramanian"
makepkg --printsrcinfo >.SRCINFO
makepkg -s
yay -Bi "$PWD"
}
makepkg_build() {
if [ -d deps ]; then
sudo pacman -U deps/*pkg.tar*
fi
makepkg -s
}
cp -r /w .
cd ./w
# bash
# yay_build
makepkg_build
sudo cp ./*pkg.tar* /w