diff --git a/resources/install_pacaur.sh b/resources/install_pacaur.sh new file mode 100755 index 00000000..fa3109a1 --- /dev/null +++ b/resources/install_pacaur.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# If you are new to arch, I encourage you to at least read and understand what +# this script does befor blindley running it. +# That's why I didn't make a one-liner out of it so you have an easier time +# reading and understanding it :) +# +# This scripts purpose is purly to save you a few seconds on your new installation. +# +# Enjoy your time on an awesome system. Arch FTW! + +# Run the following from a terminal to install pacaur: +# $ curl -s https://gist.githubusercontent.com/Tadly/0e65d30f279a34c33e9b/raw/pacaur_install.sh | bash + +# Make sure our shiny new arch is up-to-date +echo "Checking for system updates..." +sudo pacman -Syu + +# Create a tmp-working-dir an navigate into it +mkdir -p /tmp/pacaur_install +cd /tmp/pacaur_install + +# If you didn't install the "base-devil" group, +# we'll need those. +sudo pacman -S binutils make gcc fakeroot --noconfirm + +# Install pacaur dependencies from arch repos +sudo pacman -S expac yajl git --noconfirm + +# Install "cower" from AUR +curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower +makepkg PKGBUILD --skippgpcheck +sudo pacman -U cower*.tar.xz --noconfirm + +# Install "pacaur" from AUR +curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur +makepkg PKGBUILD +sudo pacman -U pacaur*.tar.xz --noconfirm + +# Clean up... +cd ~ +rm -r /tmp/pacaur_install diff --git a/tasks/__init__.py b/tasks/__init__.py index 1e063c48..49be8a14 100644 --- a/tasks/__init__.py +++ b/tasks/__init__.py @@ -3,14 +3,16 @@ import sys from invoke import Collection, task as ctask -from . import osx +from . import arch from . import linux +from . import osx from .util import DOTFILES_DIRECTORY, RESOURCES_DIRECTORY, link_filenames ns = Collection() ns.add_collection(osx) ns.add_collection(linux) +ns.add_collection(arch) @ctask(default=True) diff --git a/tasks/arch.py b/tasks/arch.py new file mode 100644 index 00000000..9c3dd0bc --- /dev/null +++ b/tasks/arch.py @@ -0,0 +1,14 @@ +from invoke import task + +from .util import RESOURCES_DIRECTORY + + +ARCH_PACKAGES = [ + "synergy", "pyenv", "rbenv", "alsa-utils", "spotify", "google-chrome", + "autoconf", "automake", "cask", "emacs25-git", +] + + +@task +def install_pacaur(ctx): + ctx.run(os.path.join(RESOURCES_DIRECTORY, "install_pacaur.sh"))