blob: c939670d64fea94971e41c617e494ded01c113b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
os=$(cat /etc/os-release | grep ID | head -n 1)
DEPMFILE=Depmfile
if [[ ! -f Depmfile ]]; then
echo "This repository does not have a Depmfile."
exit
fi
install_arch() {
ARCH_PACKAGES=$(grep ARCH_PACKAGES ${DEPMFILE} | sed 's/ARCH_PACKAGES: //g')
if [[ $ARCH_PACKAGES == "" ]]; then
echo "Repository does not have any dependencies for Arch Linux"
else
pacman -S --needed $ARCH_PACKAGES
fi
}
case $os in
"ID=arch") install_arch;;
"ID=artix")
echo "WARNING: You may need standard Arch Linux repositories enabled in pacman."
install_arch;;
*) echo "Unknown OS\n You must manually install dependencies";;
esac
|