network/protonmail-bridge: Make ELF libraries executable.

This fixes a problem revealed by sbopkglint.

Signed-off-by: Erich Ritz <erich.public@protonmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Erich Ritz 2023-07-21 13:02:09 -05:00 committed by Willy Sudiarto Raharjo
parent b2dd7f839c
commit 43da8f31a0
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -72,6 +72,8 @@ find -L . \
mv $PKG/usr/lib $PKG/usr/lib64
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs chmod 755 2> /dev/null || true
rm $PKG/usr/bin/protonmail-bridge
ln -s /usr/lib64/protonmail/bridge/proton-bridge $PKG/usr/bin/protonmail-bridge