main
KoNicks 5 years ago
parent b168dfb365
commit 0b57084726
  1. 78
      koffe

78
koffe

@ -88,6 +88,13 @@ then
pacman -Sp --noconfirm - < /tmp/koffe/n/libnewt > /tmp/koffe/l/libnewt pacman -Sp --noconfirm - < /tmp/koffe/n/libnewt > /tmp/koffe/l/libnewt
echo libnewt >> /usr/share/archiso/configs/releng/airootfs/root/install.list echo libnewt >> /usr/share/archiso/configs/releng/airootfs/root/install.list
wget -nc -i /tmp/koffe/l/libnewt -P /usr/share/archiso/configs/releng/airootfs/root/pkg/ wget -nc -i /tmp/koffe/l/libnewt -P /usr/share/archiso/configs/releng/airootfs/root/pkg/
pactree -u -s efibootmgr > /tmp/koffe/n/efibootmgr
pacman -Sp --noconfirm - < /tmp/koffe/n/efibootmgr > /tmp/koffe/l/efibootmgr
echo efibootmgr >> /usr/share/archiso/configs/releng/airootfs/root/install.list
wget -nc -i /tmp/koffe/l/efibootmgr -P /usr/share/archiso/configs/releng/airootfs/root/pkg/
pactree -u -s grub > /tmp/koffe/n/grub pactree -u -s grub > /tmp/koffe/n/grub
pacman -Sp --noconfirm - < /tmp/koffe/n/grub > /tmp/koffe/l/grub pacman -Sp --noconfirm - < /tmp/koffe/n/grub > /tmp/koffe/l/grub
echo grub >> /usr/share/archiso/configs/releng/airootfs/root/install.list echo grub >> /usr/share/archiso/configs/releng/airootfs/root/install.list
@ -99,16 +106,26 @@ then
fi fi
for app in $prog for app in $prog
do do
PACAUR=0
clear clear
echo $app echo $app
variable=$(pacman -Sg $app) variable=$(pacman -Sg $app)
if [[ $variable == '' ]]; if [[ $variable == '' ]];
then then
#base #base
pactree -u -s $app > /tmp/koffe/n/$app aurornot=$(pactree -s -u $app 2>&1 >/dev/null | cut -f 1 -d ':')
pacman -Sp --noconfirm - < /tmp/koffe/n/$app > /tmp/koffe/l/$app if [[ $auronnot != "error" ]];
echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list then
wget -nc -i /tmp/koffe/l/$app -P /usr/share/archiso/configs/releng/airootfs/root/pkg/ pactree -u -s $app > /tmp/koffe/n/$app
pacman -Sp --noconfirm - < /tmp/koffe/n/$app > /tmp/koffe/l/$app
echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list
wget -nc -i /tmp/koffe/l/$app -P /usr/share/archiso/configs/releng/airootfs/root/pkg/
fi
if [[ $aurornot == "error" ]];
then
PACAUR=1
fi
fi fi
if [[ $variable != '' ]]; if [[ $variable != '' ]];
then then
@ -125,27 +142,38 @@ then
pacman -Sp --noconfirm - < /tmp/koffe/grtree > /tmp/koffe/grlinks pacman -Sp --noconfirm - < /tmp/koffe/grtree > /tmp/koffe/grlinks
wget -nc -i /tmp/koffe/grlinks -P /usr/share/archiso/configs/releng/airootfs/root/pkg/ wget -nc -i /tmp/koffe/grlinks -P /usr/share/archiso/configs/releng/airootfs/root/pkg/
fi fi
mkdir /tmp/koffe/home if [[ $PACAUR == 1 ]];
sudo usermod -d /tmp/koffe/home/ nobody then
git clone https://aur.archlinux.org/$app /tmp/koffe/aurbg/$app echo "AUR PACKAGE! BEWARE"
chown -hR nobody /tmp/koffe/ mkdir /tmp/koffe/home
cd /tmp/koffe/aurbg/$app sudo usermod -d /tmp/koffe/home/ nobody
sudo -u nobody makepkg --noconfirm --skippgpcheck git clone https://aur.archlinux.org/$app /tmp/koffe/aurbg/$app
cp /tmp/koffe/aurbg/$app/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg chown -hR nobody /tmp/koffe/
echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list cd /tmp/koffe/aurbg/$app
declare -a bb sudo -u nobody makepkg --noconfirm --skippgpcheck
bb=$(cat /tmp/koffe/aurbg/$app/.SRCINFO | grep depends | cut -f 2 -d '=' | cut -f 1 -d '>' | cut -f 1 -d '"') cp /tmp/koffe/aurbg/$app/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg
for depend in $bb echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list
do declare -a bb
pactree -u -s $depend > /tmp/koffe/n/$depend bb=$(cat /tmp/koffe/aurbg/$app/.SRCINFO | grep depends | cut -f 2 -d '=' | cut -f 1 -d '>' | cut -f 1 -d ':')
pacman -Sp --noconfirm - < /tmp/koffe/n/$depend > /tmp/koffe/l/$depend for depend in $bb
wget -nc -i /tmp/koffe/l/$depend -P /usr/share/archiso/configs/releng/airootfs/root/pkg/ do
git clone https://aur.archlinux.org/$depend /tmp/koffe/aurbg/$depend aurdep_aur=$(pactree -s -u $depend 2>&1 >/dev/null | cut -f 1 -d ':')
chown -hR nobody /tmp/koffe/$depend if [[ $aurdep_aur != "error" ]];
cd /tmp/koffe/aurbg/$depend then
sudo -u nobody makepkg --noconfirm --skippgpcheck pactree -u -s $depend > /tmp/koffe/n/$depend
cp /tmp/koffe/aurbg/$depend/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg pacman -Sp --noconfirm - < /tmp/koffe/n/$depend > /tmp/koffe/l/$depend
done wget -nc -i /tmp/koffe/l/$depend -P /usr/share/archiso/configs/releng/airootfs/root/pkg/
fi
if [[ $aurdep_aur == "error" ]];
then
git clone https://aur.archlinux.org/$depend /tmp/koffe/aurbg/$depend
chown -hR nobody /tmp/koffe/$depend
cd /tmp/koffe/aurbg/$depend
sudo -u nobody makepkg --noconfirm --skippgpcheck
cp /tmp/koffe/aurbg/$depend/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg
fi
done
fi
done done
repo-add /usr/share/archiso/configs/releng/airootfs/root/pkg/koffe.db.tar.gz /usr/share/archiso/configs/releng/airootfs/root/pkg/* repo-add /usr/share/archiso/configs/releng/airootfs/root/pkg/koffe.db.tar.gz /usr/share/archiso/configs/releng/airootfs/root/pkg/*
mkarchiso -v -w ~/koffeiso -o $pathto/ /usr/share/archiso/configs/releng mkarchiso -v -w ~/koffeiso -o $pathto/ /usr/share/archiso/configs/releng

Loading…
Cancel
Save