enable aur packages in iso

main
Matt C 3 years ago
parent 577ee21dc0
commit ac3ff23151

3
.gitignore vendored

@ -2,4 +2,5 @@
sysroot/
sysroot.*
crystal/pacman.conf
crystal/airootfs/etc/pacman.conf
crystal/airootfs/etc/pacman.conf
repo/

@ -16,6 +16,38 @@ else
cp pacman.def crystal/pacman.conf
fi
if [[ -f aur-pkgs ]]; then
if [[ ! -d repo ]]; then
mkdir repo
mkdir temp
for pkg in "$(cat aur-pkgs)"; do
pushd temp
git clone https://aur.archlinux.org/$pkg.git
pushd $pkg
makepkg -sf --skippgpcheck
cp *.pkg.tar.zst ../../repo/.
popd
popd
done
rm -rf temp/
pushd repo
repo-add aur.db.tar.gz *.pkg.tar.*
MP=$(pwd)
popd
echo >> crystal/packages.x86_64
for pkg in "$(cat aur-pkgs)"; do
echo "${pkg}" >> crystal/packages.x86_64
done
fi
echo "[aur]" >> crystal/pacman.conf
echo "SigLevel = Never" >> crystal/pacman.conf
echo "Server = file://${MP}" >> crystal/pacman.conf
fi
# idk if this would've happened automatically?
cp crystal/pacman.conf crystal/airootfs/etc/.
cp crystal/packages.x86_64 crystal/airootfs/etc/packages.x86_64

@ -1 +1 @@
Built on 07/16/21 @ 22:19:07 EST
Built on 07/19/21 @ 22:43:21 EST

@ -30,4 +30,4 @@ filesystem
crystal-cli-boot
crystal-branding
citrine
neofetch
neofetch
Loading…
Cancel
Save