name=ninja version=1.7.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" \ '7b482218757acbaeac4d4d54a3cd94e1' header_end cd "$name-$version" if option bootstrap; then ./configure.py --bootstrap else ./configure.py ninja fi install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "$name" install -Dm644 misc/bash-completion "$dir_install/$dir_prefix/$dir_datadir/bash-completion/completions/$name" install -Dm644 misc/zsh-completion "$dir_install/$dir_prefix/$dir_datadir/zsh/site-functions/_$name" install -Dm644 misc/ninja.vim "$dir_install/$dir_prefix/$dir_datadir/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: