Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

64 lines
2.7KB

  1. SHELL:=/bin/bash
  2. ubuntu2004:
  3. # check out revision that is master at the time of writing
  4. git clone https://github.com/erikzenker/inotify-cpp || true
  5. pushd inotify-cpp && \
  6. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  7. popd && \
  8. bash ../ubuntu2004.sh make impl
  9. make package-ubuntu2004
  10. ubuntu2204:
  11. # check out revision that is master at the time of writing
  12. git clone https://github.com/erikzenker/inotify-cpp || true
  13. pushd inotify-cpp && \
  14. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  15. popd && \
  16. bash ../ubuntu2204.sh make impl
  17. make package-ubuntu2204
  18. ubuntu2404:
  19. # check out revision that is master at the time of writing
  20. git clone https://github.com/erikzenker/inotify-cpp || true
  21. pushd inotify-cpp && \
  22. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  23. popd && \
  24. bash ../ubuntu2404.sh make impl
  25. make package-ubuntu2404
  26. impl:
  27. dpkg -i boost/pkg/*.deb
  28. pushd inotify-cpp && \
  29. cmake -DCMAKE_INSTALL_PREFIX=$$PWD/../inotify-cpp_out -DBUILD_EXAMPLE=OFF -DBUILD_TEST=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DUSE_BOOST_FILESYSTEM=OFF -DBoost_USE_STATIC_LIBS=ON -DBOOST_ROOT="/opt/cppse/build/boost/" -DBoost_INCLUDE_DIR="/opt/cppse/build/boost/include" . && \
  30. make -j8 && \
  31. make install
  32. package-ubuntu2004:
  33. rm -rf out
  34. mkdir -p out/opt/cppse/build/inotify-cpp
  35. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  36. rm -rf cppse_inotify-cpp_*_amd64.deb
  37. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  38. package-ubuntu2204:
  39. rm -rf out
  40. mkdir -p out/opt/cppse/build/inotify-cpp
  41. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  42. rm -rf cppse_inotify-cpp_*_amd64.deb
  43. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1.1 -s dir -t deb -n inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  44. package-ubuntu2404:
  45. rm -rf out
  46. mkdir -p out/opt/cppse/build/inotify-cpp
  47. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  48. rm -rf cppse_inotify-cpp_*_amd64.deb
  49. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v 1.1.1 -s dir -t deb -n inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  50. clean:
  51. sudo rm -rf inotify-cpp*
  52. sudo rm -rf out
  53. shell:
  54. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash