network/windscribe: Fix linter.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2023-12-01 08:25:09 +07:00
parent 78f6ce1d4b
commit 9007c59893
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 7 additions and 3 deletions

View File

@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -75,9 +72,16 @@ rm -fR etc/{systemd,windscribe/update-systemd-resolved} usr/local
mv * $PKG/
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/polkit-1 $PKG/usr/share/
chmod 644 $PKG/usr/share/applications/windscribe.desktop
chmod 644 $PKG/usr/share/icons/hicolor/*/apps/windscribe.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh