#!/bin/bash -e OUTPUT_DIR=$PWD SOURCE_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})/..) VERSION=$(cd "$SOURCE_DIR" && git describe --tags --abbrev=8 --dirty)-1~upstream-debian10 DOCKER_TAG=$(docker build -q - < toolchain.cmake < laminar/DEBIAN/control Package: laminar Version: $VERSION Section: Priority: optional Architecture: armhf Maintainer: Oliver Giles Depends: libsqlite3-0, zlib1g Description: Lightweight Continuous Integration Service EOF cat < laminar/DEBIAN/postinst #!/bin/bash echo Creating laminar user with home in /var/lib/laminar useradd -r -d /var/lib/laminar -s /usr/sbin/nologin laminar mkdir -p /var/lib/laminar/cfg/{jobs,nodes,scripts} chown -R laminar: /var/lib/laminar EOF chmod +x laminar/DEBIAN/postinst dpkg-deb --build laminar mv laminar.deb /output/laminar_${VERSION}_armhf.deb EOS