Created
August 15, 2013 06:31
-
-
Save justbrowsing/6238728 to your computer and use it in GitHub Desktop.
Script that installs Compiz packages in ArchLinux
This file contains hidden or 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/bash | |
#################### | |
### arch-compiz #### | |
version="20130814" # | |
### JustBrowsing ### | |
#################### | |
packerDepends="binutils wget ca-certificates jshon git pcre" | |
xorgDepends="xorg-server xorg-xinit xf86-video-fbdev xf86-video-vesa xf86-input-keyboard xf86-input-mouse mesa-libgl" | |
compileDepends="make gcc autoconf automake" | |
compizRollback="compiz-core compiz-bcop compizconfig-backend-gconf compizconfig-python libcompizconfig" | |
compizRollbackPlugins="compiz-fusion-plugins-main compiz-fusion-plugins-extra emerald emerald-themes" | |
compizAUR="ccsm fusion-icon-fixed python2-sexy" | |
echo "==> Complete Compiz installer for ArchLinux" | |
# Packer depends | |
[ "$UID" != "0" ] && [ "$USER" != "root" ] && exit 1; | |
rm /var/lib/pacman/db.lock 2>/dev/null | |
pacman -Syy --noconfirm --needed $packerDepends && | |
# Installer packer | |
mkdir -p /opt/aur/packer && | |
cd /opt/aur/packer && | |
wget https://aur.archlinux.org/packages/pa/packer/PKGBUILD -O PKGBUILD && | |
makepkg --asroot --noconfirm -i --needed && | |
packer -Ss justbrowsing-webapps | |
# Xorg depends | |
pacman -S --noconfirm --needed $xorgDepends 2>/dev/null && | |
# Compile depends | |
pacman -S --noconfirm --needed $compileDepends 2>/dev/null && | |
# Edit pacman.conf | |
cp /etc/pacman.conf /etc/pacman.conf.precompiz | |
arch=$(uname -m 2>/dev/null); | |
line=$(grep -n "^\[community]" /etc/pacman.conf | awk -F : '{print $1}'); | |
line=$((line+1)); | |
server="Server = http://arm.konnichi.com/2013/04/01/community/os/${arch}" | |
sed -i "${line}s|Include.*|$server|g" /etc/pacman.conf | |
# Install compiz packages from Arch Rollback Machine | |
pacman -Syy --noconfirm --needed $compizRollback $compizRollbackPlugins | |
# Revert pacman.conf | |
cp /etc/pacman.conf.precompiz /etc/pacman.conf | |
pacman -Syy && | |
# Install AUR packages | |
packer -S --noconfirm $compizAUR | |
echo "[DONE]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notice: Arch Rollback Machine decommissioned.
This script is on hold until I mirror the packages elsewhere.