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

30
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,17 +106,27 @@ 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
aurornot=$(pactree -s -u $app 2>&1 >/dev/null | cut -f 1 -d ':')
if [[ $auronnot != "error" ]];
then
pactree -u -s $app > /tmp/koffe/n/$app pactree -u -s $app > /tmp/koffe/n/$app
pacman -Sp --noconfirm - < /tmp/koffe/n/$app > /tmp/koffe/l/$app pacman -Sp --noconfirm - < /tmp/koffe/n/$app > /tmp/koffe/l/$app
echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list 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/ wget -nc -i /tmp/koffe/l/$app -P /usr/share/archiso/configs/releng/airootfs/root/pkg/
fi fi
if [[ $aurornot == "error" ]];
then
PACAUR=1
fi
fi
if [[ $variable != '' ]]; if [[ $variable != '' ]];
then then
#gnome #gnome
@ -125,6 +142,9 @@ 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
if [[ $PACAUR == 1 ]];
then
echo "AUR PACKAGE! BEWARE"
mkdir /tmp/koffe/home mkdir /tmp/koffe/home
sudo usermod -d /tmp/koffe/home/ nobody sudo usermod -d /tmp/koffe/home/ nobody
git clone https://aur.archlinux.org/$app /tmp/koffe/aurbg/$app git clone https://aur.archlinux.org/$app /tmp/koffe/aurbg/$app
@ -134,18 +154,26 @@ then
cp /tmp/koffe/aurbg/$app/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg cp /tmp/koffe/aurbg/$app/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg
echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list
declare -a bb declare -a bb
bb=$(cat /tmp/koffe/aurbg/$app/.SRCINFO | grep depends | cut -f 2 -d '=' | cut -f 1 -d '>' | cut -f 1 -d '"') bb=$(cat /tmp/koffe/aurbg/$app/.SRCINFO | grep depends | cut -f 2 -d '=' | cut -f 1 -d '>' | cut -f 1 -d ':')
for depend in $bb for depend in $bb
do do
aurdep_aur=$(pactree -s -u $depend 2>&1 >/dev/null | cut -f 1 -d ':')
if [[ $aurdep_aur != "error" ]];
then
pactree -u -s $depend > /tmp/koffe/n/$depend pactree -u -s $depend > /tmp/koffe/n/$depend
pacman -Sp --noconfirm - < /tmp/koffe/n/$depend > /tmp/koffe/l/$depend pacman -Sp --noconfirm - < /tmp/koffe/n/$depend > /tmp/koffe/l/$depend
wget -nc -i /tmp/koffe/l/$depend -P /usr/share/archiso/configs/releng/airootfs/root/pkg/ 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 git clone https://aur.archlinux.org/$depend /tmp/koffe/aurbg/$depend
chown -hR nobody /tmp/koffe/$depend chown -hR nobody /tmp/koffe/$depend
cd /tmp/koffe/aurbg/$depend cd /tmp/koffe/aurbg/$depend
sudo -u nobody makepkg --noconfirm --skippgpcheck sudo -u nobody makepkg --noconfirm --skippgpcheck
cp /tmp/koffe/aurbg/$depend/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg cp /tmp/koffe/aurbg/$depend/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg
fi
done 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