Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

32 lines
1.0KB

  1. SHELL:=/bin/bash
  2. ubuntu2004:
  3. # check out revision that is master at the time of writing
  4. git clone https://github.com/magiblot/tvision || true
  5. pushd tvision && \
  6. git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \
  7. popd && \
  8. bash ../ubuntu2004.sh make impl
  9. make package-ubuntu2004
  10. impl:
  11. pushd tvision && \
  12. cmake . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$$PWD/../tvision_out && \
  13. cmake --build ./build && \
  14. pushd build && \
  15. make install
  16. package-ubuntu2004:
  17. rm -rf out
  18. mkdir -p out/opt/cppse/build/tvision
  19. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  20. rm -rf cppse_tvision_*_amd64.deb
  21. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n cppse-tvision --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "tvision - build dependency" --url "https://github.com/magiblot/tvision" --deb-generate-changes -C /src/out
  22. clean:
  23. sudo rm -rf tvision*
  24. sudo rm -rf out
  25. shell:
  26. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash