Created
June 3, 2018 17:27
-
-
Save ordanax/da1a13ed0c84ff6f3d0d249f2c5e932c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Обновляем систему | |
echo "Проверка наличия обновлений..." | |
sudo pacman -Syu | |
# Создаём aurman_install директорию и переходим в неё | |
mkdir -p /tmp/aurman_install | |
cd /tmp/aurman_install | |
# Установка "aurman" из AUR | |
if [ ! -n "$(pacman -Qs aurman)" ]; then | |
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=aurman | |
makepkg -sfci | |
#|||| | |
#|||└─ Установка или обновление пакета после успешной сборки с помощью pacman | |
#||└─ Очистка оставшихся файлов и папок | |
#|└─ Пересборка пакета если он уже собран | |
#└─ Установка отсутствующих зависимостей с помощью pacman. | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment