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.
 
 
 
 
 

19 lines
361 B

  1. #!/bin/bash -e
  2. install -m 755 patch/ninja.patch "${ROOTFS_DIR}/etc/"
  3. on_chroot << EOF
  4. cd "/tmp"
  5. if [ ! -d "ninja" ]; then
  6. git clone https://github.com/ninja-build/ninja.git
  7. cd ninja
  8. patch -u CMakeLists.txt -i /etc/ninja.patch
  9. mkdir -p build
  10. cd build
  11. cmake -DCMAKE_BUILD_TYPE=Release ..
  12. make -j$(nproc) install
  13. ldconfig
  14. fi
  15. EOF