Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
817 B

name=ninja
7 years ago
version=1.8.2
define_option '!bootstrap: Bootstrap this program'
dlextract "https://github.com/ninja-build/$name/archive/v$version/$name-$version.tar.gz" \
7 years ago
'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: