選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

48 行
2.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/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. impl:
  19. dpkg -i boost/pkg/*.deb
  20. pushd inotify-cpp && \
  21. 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" . && \
  22. make -j8 && \
  23. make install
  24. package-ubuntu2004:
  25. rm -rf out
  26. mkdir -p out/opt/cppse/build/inotify-cpp
  27. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  28. rm -rf cppse_inotify-cpp_*_amd64.deb
  29. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.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
  30. package-ubuntu2204:
  31. rm -rf out
  32. mkdir -p out/opt/cppse/build/inotify-cpp
  33. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  34. rm -rf cppse_inotify-cpp_*_amd64.deb
  35. 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
  36. clean:
  37. sudo rm -rf inotify-cpp*
  38. sudo rm -rf out
  39. shell:
  40. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash