#!/usr/bin/env bash # # Compiles and install the YouCompleteMe server component # # TODO NOT FINISHED NOR TESTED msg2() { echo "$@" } # TODO cd quelque part dir="$(pwd)" archive=$(mktemp) wget "https://aur.archlinux.org/cgit/aur.git/snapshot/vim-youcompleteme-git.tar.gz" -O "$archive" snapshot=$(mktemp -d) tar xzf "$archive" -C "$snapshot" rm "$archive" srcdir="$dir/src" pkgdir="$dir/pkg" mkdir -p "$srcdir" mkdir -p "$pkgdir" source "$snapshot/vim-youcompleteme-git/PKGBUILD" rm -rf "$snapshot" sudo pacman -S ${depends[@]} --asdeps sudo pacman -S ${makedepends[@]} --asdeps cd "$srcdir" for s in ${source[@]} do git clone "$(echo "$s" | sed 's/^git+//')" done prepare build package