looqs-bundle/scripts/5-bundle.sh
Albert S 8e680e01cd scripts: 5-bundle.sh: Set rpath with patchelf
As an alternative to LD_LIBRARY_PATH.
2022-06-28 23:32:06 +02:00

20 lines
501 B
Bash
Executable File

#!/bin/bash
set -e
. scripts/CONFIG
DIRNAME="looqs-${TAG}"
ARCHIVENAME="${DIRNAME}.tar.xz"
mv out ${DIRNAME}
cp src/looqs-gui ${DIRNAME}
cp src/looqs ${DIRNAME}
chmod 755 src/looqs-gui
chmod 755 src/looqs
patchelf --set-rpath '$ORIGIN/../lib/' ${DIRNAME}/bin/*
patchelf --set-rpath '$ORIGIN' ${DIRNAME}/lib/*.so*
patchelf --set-rpath '$ORIGIN/../../' $( find "${DIRNAME}/lib/plugins/" | grep so$ )
tar cfpvJ "${DIRNAME}".tar.xz "${DIRNAME}"
gpg -b --local-user "$SIGNING_KEY_EMAIL" "$ARCHIVENAME"