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.

56 line
2.3KB

  1. SHELL:=/bin/bash
  2. ubuntu1804:
  3. git clone https://github.com/rayburgemeestre/seasocks --branch v1.4.3
  4. bash ../ubuntu1804.sh make impl
  5. make package-ubuntu1804
  6. ubuntu2004:
  7. git clone https://github.com/rayburgemeestre/seasocks --branch v1.4.3
  8. bash ../ubuntu2004.sh make impl
  9. make package-ubuntu2004
  10. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  11. ubuntu2204:
  12. git clone https://github.com/rayburgemeestre/seasocks --branch v1.4.3
  13. bash ../ubuntu2204.sh make impl
  14. make package-ubuntu2204
  15. bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  16. impl:
  17. switch-to-latest-clang
  18. apt-get update && apt-get install libz-dev -y && \
  19. pushd seasocks && \
  20. mkdir build && pushd build && \
  21. CXX=$$(which c++) cmake -DCMAKE_INSTALL_PREFIX=$$PWD/seasocks_out .. && \
  22. make -j $$(nproc) && \
  23. make install
  24. package-ubuntu1804:
  25. rm -rf out
  26. mkdir -p out/opt/cppse/build/seasocks
  27. cp -prv seasocks/build/seasocks_out/* out/opt/cppse/build/seasocks/
  28. rm -rf seasocks_*_amd64.deb
  29. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -s dir -t deb -n seasocks --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "seasocks - build dependency" --url "https://github.com/mattgodbolt/seasocks" --deb-generate-changes -C /src/out
  30. package-ubuntu2004:
  31. rm -rf out
  32. mkdir -p out/opt/cppse/build/seasocks
  33. cp -prv seasocks/build/seasocks_out/* out/opt/cppse/build/seasocks/
  34. rm -rf seasocks_*_amd64.deb
  35. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n seasocks --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "seasocks - build dependency" --url "https://github.com/mattgodbolt/seasocks" --deb-generate-changes -C /src/out
  36. package-ubuntu2204:
  37. rm -rf out
  38. mkdir -p out/opt/cppse/build/seasocks
  39. cp -prv seasocks/build/seasocks_out/* out/opt/cppse/build/seasocks/
  40. rm -rf seasocks_*_amd64.deb
  41. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1 -s dir -t deb -n seasocks --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "seasocks - build dependency" --url "https://github.com/mattgodbolt/seasocks" --deb-generate-changes -C /src/out
  42. clean:
  43. rm -rf seasocks
  44. rm -rf out
  45. shell:
  46. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash