Merge pull request #176 from msabwat/master

Feature: get_dependencies for Arch linux users
This commit is contained in:
Thomas Pöchtrager 2019-03-07 15:02:20 +01:00 committed by GitHub
commit 148bc373d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,8 @@
# this assumes you are running as root or are using sudo # this assumes you are running as root or are using sudo
# #
USER="$(stat --format=%U .)"
get_fedora_deps() get_fedora_deps()
{ {
yum install clang llvm-devel libxml2-devel libuuid-devel openssl-devel \ yum install clang llvm-devel libxml2-devel libuuid-devel openssl-devel \
@ -44,6 +46,11 @@ get_debian_deps()
libssl-dev bash patch make tar xz-utils bzip2 gzip sed cpio libbz2-dev libssl-dev bash patch make tar xz-utils bzip2 gzip sed cpio libbz2-dev
} }
get_arch_deps()
{
pacman -S clang llvm libxml2 openssl bash patch make tar bzip2 gzip sed cpio xz
}
unknown() unknown()
{ {
echo "Unknown system type. Please get dependencies by hand " echo "Unknown system type. Please get dependencies by hand "
@ -67,6 +74,11 @@ if [ -e /etc/issue ]; then
get_fedora_deps get_fedora_deps
elif [ "`grep -i mageia /etc/issue`" ]; then elif [ "`grep -i mageia /etc/issue`" ]; then
get_mageia_deps get_mageia_deps
elif [ "`grep -i arch /etc/issue`" ]; then
echo "Running pacman to install dependencies..."
get_arch_deps
echo "Downloading and Installing uuid..."
sudo -u $USER -- sh -c 'git clone https://aur.archlinux.org/uuid.git /tmp/uuid; pushd /tmp/uuid; makepkg -srci; popd; rm -rf /tmp/uuid'
else else
unknown unknown
fi fi

0
tools/x Normal file
View File