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.

32 line
1.2KB

  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. impl:
  11. dpkg -i boost/pkg/*.deb
  12. pushd inotify-cpp && \
  13. 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" . && \
  14. make -j8 && \
  15. make install
  16. package-ubuntu2004:
  17. rm -rf out
  18. mkdir -p out/opt/cppse/build/inotify-cpp
  19. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  20. rm -rf cppse_inotify-cpp_*_amd64.deb
  21. 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
  22. clean:
  23. sudo rm -rf inotify-cpp*
  24. sudo rm -rf out
  25. shell:
  26. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash