Skip to content

Commit

Permalink
Rebuild all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
zstg authored Sep 22, 2024
1 parent d72aa51 commit 249a5ac
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 240 deletions.
2 changes: 1 addition & 1 deletion PKGBUILDS/grab/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pkgdesc="Definitely not a system info fetch script"
arch=('x86_64')
url="https://github.com/StratOS-Linux/grab"
license=('GPL')
depends=('gcc' 'make')
depends=('gcc' 'make' 'fakeroot')

prepare() {
cd "$srcdir"
Expand Down
126 changes: 63 additions & 63 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ build_and_package() {
sudo git config --global init.defaultBranch main

local packages=(
# "albert"
# "aura-bin"
"albert"
"aura-bin"
# "aurutils"
"bibata-cursor-theme-bin"
# "brave-bin"
Expand All @@ -92,20 +92,20 @@ build_and_package() {
# "libadwaita-without-adwaita-git"
# "mkinitcpio-openswap"
# "nwg-clipman"
# "nwg-dock-hyprland-bin"
"nwg-dock-hyprland-bin"
# "octopi"
# "oh-my-zsh-git"
"oh-my-zsh-git"
# "pamac-all"
# "pandoc-bin"
# "python-clickgen"
"pandoc-bin"
"python-clickgen"
# "pyprland"
# #"repoctl"
# "rua"
# "swayfx"
"swayfx"
# "sway-nvidia"
# "swayosd-git"
"swayosd-git"
"ventoy-bin"
# "yay-bin"
"yay-bin"
)

for i in "${packages[@]}"; do
Expand All @@ -114,59 +114,59 @@ build_and_package() {

# # sudo pacman -U $dir/x86_64/ckbcomp-1.227-1-any.pkg.tar.zst --noconfirm
# sudo pacman -U $dir/x86_64/repoctl-0.22.2-1-x86_64.pkg.tar.zst --noconfirm
# cd $dir/PKGBUILDS/rockers/
# sudo chmod -R 777 ../rockers
# sudo -u builder makepkg -cfs --noconfirm # --sign
# rm -f **debug**.pkg.tar.zst
# rm -rf src/ pkg/
# mv *.pkg.tar.zst $dir/x86_64/
# cd $dir/

# mkdir -p /tmp/litefm && chmod -R 777 /tmp/litefm
# cp $dir/PKGBUILDS/litefm/PKGBUILD /tmp/litefm
# cd /tmp/litefm
# rm -f $dir/x86_64/**litefm**.pkg.tar.zst
# sudo -u builder makepkg -cfs --noconfirm # --sign
# mv *.pkg.tar.zst $dir/x86_64/
# cd $dir/

# mkdir -p /tmp/ckbcomp
# cp $dir/PKGBUILDS/ckbcomp/PKGBUILD /tmp/ckbcomp
# cd /tmp/ckbcomp
# sudo chmod -R 777 /tmp/ckbcomp
# sudo -u builder makepkg -cfs --noconfirm
# rm -f **debug**.pkg.tar.zst
# cp *.pkg.tar.zst $dir/x86_64/
# sudo pacman -U *.pkg.tar.zst --noconfirm
# cd $dir

# cd "$dir"/PKGBUILDS/calamares
# sudo chmod -R 777 "$dir"/PKGBUILDS/calamares
# sudo -u builder makepkg -cfs --noconfirm # --sign
# echo "Removing Qt Calamares build..."
# sudo rm -v **qt5**.pkg.tar.zst
# sudo rm -rfv *.tar.gz **debug**.pkg.tar.zst calamares/ src/ pkg/
# rm -fv "$dir"/x86_64/**calamares**.pkg.tar.zst
# mv -v *.pkg.tar.zst "$dir"/x86_64/
# cd "$dir"

# mkdir -p /tmp/grab
# cp "$dir"/PKGBUILDS/grab/PKGBUILD /tmp/grab
# cd /tmp/grab
# sudo chmod -R 777 /tmp/grab
# sudo -u builder makepkg -cfs --noconfirm
# rm -f **debug**.pkg.tar.zst
# cp *.pkg.tar.zst "$dir"/x86_64/
# cd "$dir"

# mkdir -p /tmp/maneki-neko
# cp "$dir"/PKGBUILDS/maneki-neko/PKGBUILD /tmp/maneki-neko
# cd /tmp/maneki-neko
# sudo chmod -R 777 /tmp/maneki-neko
# sudo -u builder makepkg -cfs --noconfirm
# rm -f **debug**.pkg.tar.zst
# cp *.pkg.tar.zst "$dir"/x86_64/
# cd "$dir"
cd $dir/PKGBUILDS/rockers/
sudo chmod -R 777 ../rockers
sudo -u builder makepkg -cfs --noconfirm # --sign
rm -f **debug**.pkg.tar.zst
rm -rf src/ pkg/
mv *.pkg.tar.zst $dir/x86_64/
cd $dir/

mkdir -p /tmp/litefm && chmod -R 777 /tmp/litefm
cp $dir/PKGBUILDS/litefm/PKGBUILD /tmp/litefm
cd /tmp/litefm
rm -f $dir/x86_64/**litefm**.pkg.tar.zst
sudo -u builder makepkg -cfs --noconfirm # --sign
mv *.pkg.tar.zst $dir/x86_64/
cd $dir/

mkdir -p /tmp/ckbcomp
cp $dir/PKGBUILDS/ckbcomp/PKGBUILD /tmp/ckbcomp
cd /tmp/ckbcomp
sudo chmod -R 777 /tmp/ckbcomp
sudo -u builder makepkg -cfs --noconfirm
rm -f **debug**.pkg.tar.zst
cp *.pkg.tar.zst $dir/x86_64/
sudo pacman -U *.pkg.tar.zst --noconfirm
cd $dir

cd "$dir"/PKGBUILDS/calamares
sudo chmod -R 777 "$dir"/PKGBUILDS/calamares
sudo -u builder makepkg -cfs --noconfirm # --sign
echo "Removing Qt Calamares build..."
sudo rm -v **qt5**.pkg.tar.zst
sudo rm -rfv *.tar.gz **debug**.pkg.tar.zst calamares/ src/ pkg/
rm -fv "$dir"/x86_64/**calamares**.pkg.tar.zst
mv -v *.pkg.tar.zst "$dir"/x86_64/
cd "$dir"

mkdir -p /tmp/grab
cp "$dir"/PKGBUILDS/grab/PKGBUILD /tmp/grab
cd /tmp/grab
sudo chmod -R 777 /tmp/grab
sudo -u builder makepkg -cfs --noconfirm
rm -f **debug**.pkg.tar.zst
cp *.pkg.tar.zst "$dir"/x86_64/
cd "$dir"

mkdir -p /tmp/maneki-neko
cp "$dir"/PKGBUILDS/maneki-neko/PKGBUILD /tmp/maneki-neko
cd /tmp/maneki-neko
sudo chmod -R 777 /tmp/maneki-neko
sudo -u builder makepkg -cfs --noconfirm
rm -f **debug**.pkg.tar.zst
cp *.pkg.tar.zst "$dir"/x86_64/
cd "$dir"
}

# Initialize and push to GitHub
Expand All @@ -180,7 +180,7 @@ initialize_and_push() {
sudo git config --global user.email 'github-actions[bot]@users.noreply.github.com'
sudo git add .
sudo git commit -am "Update packages"
sudo git push "https://x-access-token:${GITHUB_TOKEN}@github.com/zstg/repo" --force
sudo git push "https://x-access-token:${GITHUB_TOKEN}@github.com/$URL" --force
}

# Main function
Expand Down
176 changes: 0 additions & 176 deletions build_old.sh

This file was deleted.

0 comments on commit 249a5ac

Please sign in to comment.