Skip to content

Instantly share code, notes, and snippets.

@ordanax
Created June 3, 2018 17:27
Show Gist options
  • Save ordanax/da1a13ed0c84ff6f3d0d249f2c5e932c to your computer and use it in GitHub Desktop.
Save ordanax/da1a13ed0c84ff6f3d0d249f2c5e932c to your computer and use it in GitHub Desktop.
#!/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