SHELL:=/bin/bash ubuntu2204: git clone -b v3.0.1 https://github.com/gurki/vivid bash ../ubuntu2204.sh make impl make package-ubuntu2204 bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R # fix permissions impl: switch-to-latest-clang # patch away issue of adding tests, currently catch is broken in clang 14. cat vivid/CMakeLists.txt | head -n -1 > vivid/CMakeLists.txt.new mv vivid/CMakeLists.txt.new vivid/CMakeLists.txt # build without tests for now mkdir -p vidid_out && \ pushd vivid && \ mkdir -p build && \ pushd build && \ cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/../vidid_out .. && \ make -j $$(nproc) && \ make install package-ubuntu2204: rm -rf out mkdir -p out/opt/cppse/build/vivid/ cp -prv vivid/vidid_out/* out/opt/cppse/build/vivid/ rm -rf vivid_*_amd64.deb docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1.1 -s dir -t deb -n vivid --license MPL2 --maintainer "Ray Burgemeestre " --description "vivid - build dependency" --url "https://github.com/gurki/vivid.git" --deb-generate-changes -C /src/out clean: rm -rf vivid rm -rf out shell: FLAGS="-i --privileged" bash ../ubuntu2204.sh /bin/bash