SHELL:=/bin/bash ubuntu2004: git clone https://github.com/rayburgemeestre/fmt --branch 7.1.3 bash ../ubuntu2004.sh make impl make package-ubuntu2004 bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions impl: switch-to-latest-clang apt-get update && apt-get install libz-dev -y && \ pushd fmt && \ mkdir build && pushd build && \ CXX=$$(which c++) cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=$$PWD/fmt_out .. && \ make -j $$(nproc) && \ make install package-ubuntu2004: rm -rf out mkdir -p out/opt/cppse/build/fmt cp -prv fmt/build/fmt_out/* out/opt/cppse/build/fmt/ rm -rf fmt_*_amd64.deb docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n fmt --license MPL2 --maintainer "Ray Burgemeestre " --description "fmt - build dependency" --url "https://github.com/mattgodbolt/fmt" --deb-generate-changes -C /src/out clean: rm -rf fmt rm -rf out shell: FLAGS="-i --privileged" bash ../ubuntu2004.sh /bin/bash