Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

31 line
983B

  1. SHELL:=/bin/bash
  2. ubuntu2004:
  3. git clone https://github.com/rayburgemeestre/fmt --branch 7.1.3
  4. bash ../ubuntu2004.sh make impl
  5. make package-ubuntu2004
  6. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  7. impl:
  8. switch-to-latest-clang
  9. apt-get update && apt-get install libz-dev -y && \
  10. pushd fmt && \
  11. mkdir build && pushd build && \
  12. CXX=$$(which c++) cmake -DCMAKE_INSTALL_PREFIX=$$PWD/fmt_out .. && \
  13. make -j $$(nproc) && \
  14. make install
  15. package-ubuntu2004:
  16. rm -rf out
  17. mkdir -p out/opt/cppse/build/fmt
  18. cp -prv fmt/build/fmt_out/* out/opt/cppse/build/fmt/
  19. rm -rf fmt_*_amd64.deb
  20. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n fmt --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fmt - build dependency" --url "https://github.com/mattgodbolt/fmt" --deb-generate-changes -C /src/out
  21. clean:
  22. rm -rf fmt
  23. rm -rf out
  24. shell:
  25. FLAGS="-i --privileged" bash ../ubuntu2004.sh /bin/bash