summaryrefslogtreecommitdiff
path: root/network/microsoft-edge/microsoft-edge.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/microsoft-edge/microsoft-edge.SlackBuild')
-rw-r--r--network/microsoft-edge/microsoft-edge.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/network/microsoft-edge/microsoft-edge.SlackBuild b/network/microsoft-edge/microsoft-edge.SlackBuild
index 4e3fa4231b..18a274585c 100644
--- a/network/microsoft-edge/microsoft-edge.SlackBuild
+++ b/network/microsoft-edge/microsoft-edge.SlackBuild
@@ -27,8 +27,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=microsoft-edge
-SRCNAM=$PRGNAM-stable-bin
-VERSION=${VERSION:-100.0.1185.29}
+SRCNAM=$PRGNAM-stable
+VERSION=${VERSION:-100.0.1185.50}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -41,6 +41,9 @@ 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
@@ -64,10 +67,10 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-mkdir -p $PRGNAM-$VERSION
+rm -rf $PRGNAM-${VERSION}
+mkdir -p $PRGNAM-${VERSION}
+rpm2cpio $CWD/$SRCNAM-${VERSION}-${BUILD}.${ARCH}.rpm | cpio -D $PRGNAM-${VERSION} -idmv
cd $PRGNAM-$VERSION
-tar -I zstd -xvf $CWD/${SRCNAM}-${VERSION}-${BUILD}-${ARCH}.pkg.tar.zst
mkdir usr/lib64
mv opt/microsoft/msedge usr/lib64/
@@ -76,6 +79,10 @@ mv opt/microsoft/msedge usr/lib64/
mv usr/share/man usr/
rm -fR etc opt
+
+# Moving icons to the source
+cp -r $CWD/icons usr/share/
+
patch -p1 < "$CWD/updater.diff"
chown -R root:root .