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.

34 lines
1.3KB

  1. SHELL:=/bin/bash
  2. seasocks_:
  3. git clone https://github.com/rayburgemeestre/seasocks --branch v1.4.3
  4. bash ../ubuntu1804.sh make impl
  5. make package
  6. impl:
  7. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40
  8. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40
  9. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40
  10. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40
  11. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40
  12. apt-get update && apt-get install libz-dev -y && \
  13. pushd seasocks && \
  14. mkdir build && pushd build && \
  15. CXX=$$(which c++) cmake -DCMAKE_INSTALL_PREFIX=$$PWD/seasocks_out .. && \
  16. make -j $$(nproc) && \
  17. make install
  18. package:
  19. rm -rf out
  20. mkdir -p out/opt/cppse/build/seasocks
  21. cp -prv seasocks/build/seasocks_out/* out/opt/cppse/build/seasocks/
  22. rm -rf seasocks_*_amd64.deb
  23. 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
  24. clean:
  25. rm -rf seasocks
  26. rm -rf out
  27. shell:
  28. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash