Create live-image for Grit OS

build.sh 806B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/zsh
  2. # Pull the packages in from a more human readable file
  3. packages=("${(@f)$(cat packages.list)}")
  4. # Clean everything up
  5. rm -rf ./packages/*
  6. rm -rf ./x86_64/*
  7. rm -rf ./i686/*
  8. # Move to our working directory
  9. cd packages
  10. for p in $packages;
  11. do
  12. # Grab the most recent packages
  13. wget https://aur.archlinux.org/packages/$p[0,2]/$p/$p.tar.gz
  14. # Unpackage the compressed packages
  15. tar -xvf $p.tar.gz
  16. # Make the Arch packages
  17. cd $p
  18. makepkg --config ../../makepkg64.conf && mv *.pkg.tar.xz ../../x86_64
  19. linux32 makepkg --config ../../makepkg32.conf && mv *.pkg.tar.xz ../../i686
  20. cd ..
  21. done
  22. # Add the Arch packages to the repositories
  23. cd ..
  24. repo-add -n ./x86_64/customrepo.db.tar.gz ./x86_64/*.tar.xz
  25. repo-add -n ./i686/customrepo.db.tar.gz ./i686/*.tar.xz