|
|
@@ -0,0 +1,31 @@ |
|
|
|
SHELL:=/bin/bash |
|
|
|
|
|
|
|
ubuntu2004: |
|
|
|
# check out revision that is master at the time of writing |
|
|
|
git clone https://github.com/magiblot/tvision || true |
|
|
|
pushd tvision && \ |
|
|
|
git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \ |
|
|
|
popd && \ |
|
|
|
bash ../ubuntu2004.sh make impl |
|
|
|
make package-ubuntu2004 |
|
|
|
|
|
|
|
impl: |
|
|
|
pushd tvision && \ |
|
|
|
cmake . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$$PWD/../tvision_out && \ |
|
|
|
cmake --build ./build && \ |
|
|
|
pushd build && \ |
|
|
|
make install |
|
|
|
|
|
|
|
package-ubuntu2004: |
|
|
|
rm -rf out |
|
|
|
mkdir -p out/opt/cppse/build/tvision |
|
|
|
cp -prv tvision_out/* out/opt/cppse/build/tvision/ |
|
|
|
rm -rf cppse_tvision_*_amd64.deb |
|
|
|
docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n cppse-tvision --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "tvision - build dependency" --url "https://github.com/magiblot/tvision" --deb-generate-changes -C /src/out |
|
|
|
|
|
|
|
clean: |
|
|
|
sudo rm -rf tvision* |
|
|
|
sudo rm -rf out |
|
|
|
|
|
|
|
shell: |
|
|
|
FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash |