2021-12-11 19:30:26 +01:00
|
|
|
# Description: Small build system with a focus on speed
|
2021-12-13 12:02:38 +01:00
|
|
|
# URL: https://ninja-build.org/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2022-03-05 16:06:34 +01:00
|
|
|
# Depends on: cmake
|
|
|
|
# Optional: bash-completion zsh
|
2021-12-11 19:30:26 +01:00
|
|
|
|
|
|
|
name=ninja
|
2024-04-11 19:27:57 +02:00
|
|
|
version=1.12.0
|
2022-05-16 07:21:50 +02:00
|
|
|
release=1
|
2021-12-11 19:30:26 +01:00
|
|
|
source=(https://github.com/$name-build/$name/archive/v$version/$name-v$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2024-04-14 21:16:27 +02:00
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure.py --bootstrap
|
|
|
|
install -D -m 0755 $name $PKG/usr/bin/$name
|
2022-03-05 16:06:34 +01:00
|
|
|
|
|
|
|
# prt-get isinst bash-completion && \
|
2024-04-14 21:16:27 +02:00
|
|
|
# install -m644 -D misc/bash-completion \
|
2022-03-05 16:06:34 +01:00
|
|
|
# $PKG/usr/share/bash-completion/completions/ninja
|
|
|
|
|
2024-04-14 21:16:27 +02:00
|
|
|
# prt-get isinst zsh && install -m644 -D misc/zsh-completion \
|
2022-03-05 16:06:34 +01:00
|
|
|
# $PKG/usr/share/zsh/site-functions/_ninja
|
|
|
|
|
2024-04-14 21:16:27 +02:00
|
|
|
install -m644 -D misc/ninja.vim \
|
2022-03-05 16:06:34 +01:00
|
|
|
$PKG/usr/share/vim/vimfiles/syntax/ninja.vim
|
2021-12-11 19:30:26 +01:00
|
|
|
}
|