2022-06-22 23:25:33 +02:00
|
|
|
#!/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/
|
|
|
|
|
2022-06-25 23:51:13 +02:00
|
|
|
for lib in $( ldd gui/looqs-gui | awk '{print $3}' | grep so | grep -vE "libGL|libm.so|libc|harfbuzz|fontconfig|libgcc|freetype|libX11|libQt" ) ; do
|
2022-06-22 23:25:33 +02:00
|
|
|
cp "$lib" /out/lib/
|
|
|
|
done
|
|
|
|
|