1
0
looqs-bundle/scripts/5-bundle.sh

20 Zeilen
501 B
Bash

2022-06-22 23:25:33 +02:00
#!/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$ )
2022-06-22 23:25:33 +02:00
tar cfpvJ "${DIRNAME}".tar.xz "${DIRNAME}"
gpg -b --local-user "$SIGNING_KEY_EMAIL" "$ARCHIVENAME"