This commit is contained in:
Shane Smiskol
2025-07-15 13:38:31 -07:00
parent fc57b4a1aa
commit 03c025ce6a
2 changed files with 272 additions and 248 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/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