name=ninja version=1.8.2 update_url="https://github.com/ninja-build/$name/releases" update_names="/archive/v$version.tar.gz" define_option '!bootstrap: Bootstrap this program' dlextract "https://github.com/ninja-build/$name/archive/v$version/$name-$version.tar.gz" \ '5fdb04461cc7f5d02536b3bfc0300166' _ cd "$name-$version" if option bootstrap; then ./configure.py --bootstrap else ./configure.py ninja fi install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" "$name" install -Dm644 misc/bash-completion "$dir_install/$dir_prefix/$dir_data/bash-completion/completions/$name" install -Dm644 misc/zsh-completion "$dir_install/$dir_prefix/$dir_data/zsh/site-functions/_$name" install -Dm644 misc/ninja.vim "$dir_install/$dir_prefix/$dir_data/vim/vimfiles/syntax/$name.vim" # Not installing emacs stuff because I have no idea how it works # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: