diff options
Diffstat (limited to 'development/electron')
-rw-r--r-- | development/electron/README | 4 | ||||
-rw-r--r-- | development/electron/electron.SlackBuild | 30 | ||||
-rw-r--r-- | development/electron/electron.info | 16 |
3 files changed, 24 insertions, 26 deletions
diff --git a/development/electron/README b/development/electron/README index ae026dc2d8..845fbcb752 100644 --- a/development/electron/README +++ b/development/electron/README @@ -5,7 +5,9 @@ cross-platform desktop applications with HTML, CSS, and JavaScript. Electron accomplishes this by combining Chromium and Node.js into a single runtime, and apps can be packaged for Mac, Windows, and Linux. -This is electron binary repackaged in Slackware style. +This is electron binary repackaged in Slackware style. This SlackBuild +is for version 19 of Electron. The binary for Electron 19 is only +available for x86_64, arm64 and arm7vl systems. Optional features diff --git a/development/electron/electron.SlackBuild b/development/electron/electron.SlackBuild index 31175a54dd..b05fd8ffb2 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-2024 Isaac Yu <isaacyu@protonmail.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:-26.6.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +39,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 @@ -51,11 +48,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 +60,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 +80,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 diff --git a/development/electron/electron.info b/development/electron/electron.info index 6074f2b12f..dd4ac0175e 100644 --- a/development/electron/electron.info +++ b/development/electron/electron.info @@ -1,10 +1,10 @@ PRGNAM="electron" -VERSION="10.0.0_beta.1" -HOMEPAGE="https://electron.atom.io/" -DOWNLOAD="https://github.com/electron/electron/releases/download/v10.0.0-beta.1/electron-v10.0.0-beta.1-linux-ia32.zip" -MD5SUM="1fb8f937c6ddf47cb6c5b6b2cfc04433" -DOWNLOAD_x86_64="https://github.com/electron/electron/releases/download/v10.0.0-beta.1/electron-v10.0.0-beta.1-linux-x64.zip" -MD5SUM_x86_64="277eed276bbbd25ec492f8646fe78048" +VERSION="26.6.10" +HOMEPAGE="https://www.electronjs.org/" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/electron/electron/releases/download/v26.6.10/electron-v26.6.10-linux-x64.zip" +MD5SUM_x86_64="3935110741a8cce639a57456b500477a" REQUIRES="" -MAINTAINER="DhabyX" -EMAIL="slack.dhabyx@gmail.com" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu@protonmail.com" |