development/electron: Updated for version 10.0.0_beta.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2020-05-24 11:52:51 +07:00
parent 17ff669358
commit 01da577064
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 12 additions and 25 deletions

View file

@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=electron
VERSION=${VERSION:-1.4.16}
VERSION=${VERSION:-10.0.0_beta.1}
SRCVER=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -56,11 +57,10 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
unzip $CWD/$PRGNAM-v$VERSION-linux-$PKG_ARCH.zip
tar xvf $CWD/node-v$VERSION.tar.gz
rm -rf $PRGNAM-$SRCVER
mkdir $PRGNAM-$SRCVER
cd $PRGNAM-$SRCVER
unzip $CWD/$PRGNAM-v$SRCVER-linux-$PKG_ARCH.zip
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -80,15 +80,10 @@ cp -a *.bin *.pak *.so $PRGNAM icudtl.dat version locales resources \
ln -sf ../share/$PRGNAM/$PRGNAM ${PRGNAM}
)
# Install node headers
mkdir -p $PKG/usr/share/$PRGNAM/node
cp -a node-v$VERSION/* $PKG/usr/share/$PRGNAM/node
# Install prebuilt version for build binary apps
if [ "${INSTALL_ZIP:-no}" != no ]; then
mkdir -p $PKG/usr/share/$PRGNAM/release
cp $CWD/$PRGNAM-v$VERSION-linux-$PKG_ARCH.zip $PKG/usr/share/$PRGNAM/release
cp $CWD/SHASUMS256.txt $PKG/usr/share/$PRGNAM/release
cp $CWD/$PRGNAM-v$SRCVER-linux-$PKG_ARCH.zip $PKG/usr/share/$PRGNAM/release
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,18 +1,10 @@
PRGNAM="electron"
VERSION="1.4.16"
VERSION="10.0.0_beta.1"
HOMEPAGE="https://electron.atom.io/"
DOWNLOAD="https://github.com/electron/electron/releases/download/v1.4.16/electron-v1.4.16-linux-ia32.zip \
https://atom.io/download/atom-shell/v1.4.16/node-v1.4.16.tar.gz \
https://github.com/electron/electron/releases/download/v1.4.16/SHASUMS256.txt"
MD5SUM="652fa09cd457f76b315ec5caba4a1c9f \
4966fe03ea2e9c6df6e96d2f230084b5 \
b5e47dfdaeab4029eb5762d93593f390"
DOWNLOAD_x86_64="https://github.com/electron/electron/releases/download/v1.4.16/electron-v1.4.16-linux-x64.zip \
https://atom.io/download/atom-shell/v1.4.16/node-v1.4.16.tar.gz \
https://github.com/electron/electron/releases/download/v1.4.16/SHASUMS256.txt"
MD5SUM_x86_64="ad3616c2e2f26eeac8acab3108ef0d8b \
4966fe03ea2e9c6df6e96d2f230084b5 \
b5e47dfdaeab4029eb5762d93593f390"
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"
REQUIRES=""
MAINTAINER="DhabyX"
EMAIL="slack.dhabyx@gmail.com"