#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=ninja pkgver=1.11.1 pkgrel=01 pkgdesc='Small build system with a focus on speed' arch=(x86_64) url='https://ninja-build.org/' depends=(gcc-libs) makedepends=(python re2c emacs-nox) source=($pkgname-$pkgver.zip::https://github.com/martine/ninja/archive/v$pkgver.zip) build() { cd ninja-$pkgver python configure.py --bootstrap emacs -Q --batch -f batch-byte-compile misc/ninja-mode.el } check() { cd ninja-$pkgver python ./configure.py ./ninja ninja_test ./ninja_test } package() { cd ninja-$pkgver install -m755 -D ninja "$pkgdir/usr/bin/ninja" install -m644 -D doc/manual.asciidoc "$pkgdir/usr/share/doc/ninja/manual.asciidoc" install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" install -m644 -D misc/ninja-mode.el "$pkgdir/usr/share/emacs/site-lisp/ninja-mode.el" install -m644 -D misc/ninja-mode.elc "$pkgdir/usr/share/emacs/site-lisp/ninja-mode.elc" install -m644 -D misc/ninja.vim "$pkgdir/usr/share/vim/vimfiles/syntax/ninja.vim" install -m644 -D misc/ninja_syntax.py "$pkgdir/usr/lib/python3.10/site-packages/ninja_syntax.py" install -m644 -D misc/bash-completion "$pkgdir/usr/share/bash-completion/completions/ninja" install -m644 -D misc/zsh-completion "$pkgdir/usr/share/zsh/site-functions/_ninja" } #---- license gpg-key sha256sums ---- license=(Apache) sha256sums=(03b7ea14bf04b87cbdd64b9a1262577093e177f8e5662515de77f3a796b75951) # ninja-1.11.1.zip