2022-01-09 15:17:36 -05:00
|
|
|
#!/bin/bash
|
|
|
|
mkdir /tmp/capnproto-install
|
2022-11-02 19:37:47 -04:00
|
|
|
pushd /tmp/capnproto-install
|
2023-06-16 19:58:06 -04:00
|
|
|
curl -O https://capnproto.org/capnproto-c++-0.10.4.tar.gz
|
|
|
|
tar zxf capnproto-c++-0.10.4.tar.gz
|
|
|
|
cd capnproto-c++-0.10.4
|
2022-11-02 19:37:47 -04:00
|
|
|
./configure --without-openssl
|
2023-02-20 17:56:53 -05:00
|
|
|
make -j$1 check
|
2022-11-02 19:37:47 -04:00
|
|
|
if [ "$EUID" -ne 0 ]; then
|
|
|
|
if command -v checkinstall &> /dev/null; then
|
|
|
|
sudo checkinstall -y
|
|
|
|
cp *.deb ~
|
|
|
|
else
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
fi
|
|
|
|
popd
|
|
|
|
sudo rm -rf /tmp/capnproto-install
|
|
|
|
else
|
|
|
|
if command -v checkinstall &> /dev/null; then
|
|
|
|
checkinstall -y
|
|
|
|
cp *.deb ~
|
|
|
|
else
|
|
|
|
make install
|
|
|
|
fi
|
|
|
|
popd
|
|
|
|
rm -rf /tmp/capnproto-install
|
|
|
|
fi
|