Files
agnos-builder/userspace/compile-capnp.sh
T
Robin Reckmann f856a66bfc Build independent packages first (#354)
* Move package compilation to separate dockerfile

* Add tag

* Revert "Add tag"

This reverts commit 6ed675b5db.

* Export packages from compiler docker

* Add packages folder to gitignore

* Add newline at EOF

* Keep cleaning apt

* Minimize compiler image

* Keep compilation in main dockerfile

* Revert some more

* Remove wip part for now

* Move build requirements installation to build scripts

* Remove newlines

* lint

* Compile and package modemmanager

* Disable unrelated modems

* Add runtime dependencies

* [Upload]

* Add missing package to fix networking

* Move package install to mm for now
2024-09-11 13:36:48 -07:00

24 lines
623 B
Bash
Executable File

#!/bin/bash -e
VERSION=1.0.2
# Install build requirements
apt-get update && apt-get install -yq --no-install-recommends \
libc6-dev \
libssl-dev \
zlib1g-dev
# Build capnproto
cd /tmp
wget https://capnproto.org/capnproto-c++-${VERSION}.tar.gz
tar xvf capnproto-c++-${VERSION}.tar.gz
cd capnproto-c++-${VERSION}
CXXFLAGS="-fPIC -O2" ./configure
make -j$(nproc)
# remove "--fstrans=no" when checkinstall is fixed (still not fixed in 24.04)
# https://bugs.launchpad.net/ubuntu/+source/checkinstall/+bug/78455
checkinstall -yD --install=no --fstrans=no --pkgname=capnproto
mv capnproto*.deb /tmp/capnproto.deb