diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-12-01 22:52:01 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-12-03 09:09:17 +0700 |
commit | f743075978a86df439f719bca0bf9eb6d2983ef3 (patch) | |
tree | c6580cbe26b75bdd99f6da961955fbcd18e22268 | |
parent | 8677dd670c0f6ea8abbb320105b86f7278c76301 (diff) |
development/electron: Updated for version 19.1.4 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/electron/README | 4 | ||||
-rw-r--r-- | development/electron/electron.SlackBuild | 27 | ||||
-rw-r--r-- | development/electron/electron.info | 16 |
3 files changed, 24 insertions, 23 deletions
diff --git a/development/electron/README b/development/electron/README index ae026dc2d8a7b..845fbcb752069 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 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 diff --git a/development/electron/electron.info b/development/electron/electron.info index 6074f2b12f552..f22f0d425c065 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="19.1.4" +HOMEPAGE="https://www.electronjs.org/" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/electron/electron/releases/download/v19.1.4/electron-v19.1.4-linux-x64.zip" +MD5SUM_x86_64="0efb007e871464f2d7babf567abc7557" REQUIRES="" -MAINTAINER="DhabyX" -EMAIL="slack.dhabyx@gmail.com" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu1@isaacyu1.com" |