diff options
Diffstat (limited to 'development/electron/electron.SlackBuild')
-rw-r--r-- | development/electron/electron.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/development/electron/electron.SlackBuild b/development/electron/electron.SlackBuild index 31175a54dd96e..84de21f442ffc 100644 --- a/development/electron/electron.SlackBuild +++ b/development/electron/electron.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for electron # Copyright 2017 Dhaby Xiloj <slack.dhabyx@gmail.com> +# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,8 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=electron -VERSION=${VERSION:-10.0.0_beta.1} -SRCVER=$(echo $VERSION | tr _ -) +VERSION=${VERSION:-19.1.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -51,11 +51,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - PKG_ARCH="ia32" -elif [ "$ARCH" = "i686" ]; then - PKG_ARCH="ia32" -elif [ "$ARCH" = "x86_64" ]; then +if [ "$ARCH" = "x86_64" ]; then PKG_ARCH="x64" else echo "The package for $(uname -m) architecture is not supported."; @@ -67,10 +63,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVER -mkdir $PRGNAM-$SRCVER -cd $PRGNAM-$SRCVER -unzip $CWD/$PRGNAM-v$SRCVER-linux-$PKG_ARCH.zip +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +unzip $CWD/$PRGNAM-v$VERSION-linux-$PKG_ARCH.zip chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -87,20 +83,23 @@ cp -a *.bin *.pak *.so $PRGNAM icudtl.dat version locales resources \ ( cd $PKG/usr/bin ln -sf ../share/$PRGNAM/$PRGNAM ${PRGNAM}${VERSION} - ln -sf ../share/$PRGNAM/$PRGNAM ${PRGNAM} ) +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 + # Install prebuilt version for build binary apps if [ "${INSTALL_ZIP:-no}" != no ]; then mkdir -p $PKG/usr/share/$PRGNAM/release - cp $CWD/$PRGNAM-v$SRCVER-linux-$PKG_ARCH.zip $PKG/usr/share/$PRGNAM/release + cp $CWD/$PRGNAM-v$VERSION-linux-$PKG_ARCH.zip $PKG/usr/share/$PRGNAM/release fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - LICENSE LICENSES.chromium.html $CWD/README.Slackware \ + LICENSE LICENSES.chromium.html \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/README.Slackware > $PKG/usr/doc/$PRGNAM-$VERSION/README.Slackware mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |