looqs-bundle/scripts/4-build-looqs.sh
2022-06-22 23:28:03 +02:00

38 righe
821 B
Bash
Executable File

#!/bin/bash
set -e
. /scripts/CONFIG
wget https://quitesimple.org/share/pubkey
sha256sum pubkey | grep fe5ce4868d6998aabe08ab51dc2d8fded73cf126d03e2df37045b6c486904356
gpg --import pubkey
rm -rf looqs
git clone https://github.com/quitesimpleorg/looqs
cd looqs
git submodule init
git submodule update
git fetch
if [ "$TAG" != "master" -a "$TAG" != "dev" ] ; then
git verify-tag "$TAG"
fi
git checkout "$TAG"
qmake
make
cp cli/looqs /out/bin/
cp gui/looqs-gui /out/bin/
for lib in $( find /usr/lib64/ -mindepth 1 | grep libQt | grep .so ) ; do
cp -a "$lib" /out/lib/
done
cp -a /usr/lib64/libcrypto* /out/lib/
cp -a /usr/lib64/qt5/plugins /out/lib/
for lib in $( ldd gui/looqs-gui | awk '{print $3}' | grep so | grep -vE "libGL|libm|libc|fontconfig|libgcc|freetype|libX11|libQt" ) ; do
cp "$lib" /out/lib/
done