🔒 Repository is read-only – file editing is disabled.

recipes/core/ninja/PAGBUILD.yaml main

31 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031
pkgname: ninja
pkgver: '1.13.2'
pkgrel: '2'
pkgdesc: 'Cross-platform IDE focused on Python application development'
url: 'http://martine.github.io/ninja/'
arch: x86_64
depends: []
makedepends: []
source:
- 'https://github.com/ninja-build/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz'

sha256sums:
- SKIP

build: |

  cd ${pkgname}-${pkgver}
  sed -i '/int Guess/a \
    int   j = 0;\
    char* jobs = getenv( "NINJAJOBS" );\
    if ( jobs != NULL ) j = atoi( jobs );\
    if ( j > 0 ) return j;\
  ' src/ninja.cc
  python3 configure.py --bootstrap

  install -vm755 -D ninja ${PKGDIR}/usr/bin/ninja
  install -vm644 -D misc/bash-completion ${PKGDIR}/usr/share/bash-completion/completions/ninja
  install -vm644 -D misc/zsh-completion  ${PKGDIR}/usr/share/zsh/site-functions/_ninja

package: |
  true