summaryrefslogtreecommitdiffstats
path: root/bin-http
diff options
context:
space:
mode:
authorIsmael Luceno2019-09-17 19:12:18 +0200
committerIsmael Luceno2019-09-17 19:12:18 +0200
commit14a1c56c4b031d81f2b0c89572addcd51cd9ae3a (patch)
tree121ce2e894b5d64d9d5475f73555284334c39e37 /bin-http
parent23e5b1639d72f101e2a74c3e895c18de129d6367 (diff)
google-chrome-bin: Simplify extraction
Diffstat (limited to 'bin-http')
-rw-r--r--bin-http/google-chrome-bin/HISTORY1
-rwxr-xr-xbin-http/google-chrome-bin/PRE_BUILD14
2 files changed, 2 insertions, 13 deletions
diff --git a/bin-http/google-chrome-bin/HISTORY b/bin-http/google-chrome-bin/HISTORY
index dc6e55c..92ab315 100644
--- a/bin-http/google-chrome-bin/HISTORY
+++ b/bin-http/google-chrome-bin/HISTORY
@@ -1,5 +1,6 @@
2019-09-17 Ismael Luceno <ismael@sourcemage.org>
* DEPENDS: updated dependencies
+ * PRE_BUILD: simplified extraction
2019-07-08 Eric Sandall <sandalle@sourcemage.org>
* Set 64-bit for EM64T as well.
diff --git a/bin-http/google-chrome-bin/PRE_BUILD b/bin-http/google-chrome-bin/PRE_BUILD
index 059688b..a97fe18 100755
--- a/bin-http/google-chrome-bin/PRE_BUILD
+++ b/bin-http/google-chrome-bin/PRE_BUILD
@@ -1,16 +1,4 @@
mk_source_dir $SOURCE_DIRECTORY &&
cd $SOURCE_DIRECTORY &&
verify_file &&
-rpm2tar $SOURCE_CACHE/$SOURCE &&
-tar xf ${SOURCE/rpm/tar} &&
-rm -f ${SOURCE/rpm/tar} &&
-
-ln $SOURCE_DIRECTORY/usr/bin/google-chrome{*,-bin} &&
-
-deskfile="$SOURCE_DIRECTORY/usr/share/applications/google-chrome.desktop"
-if [[ $GOOGLE_CHROME_BIN_VERSION != stable ]]; then
- deskfile="${deskfile%.desktop}-${GOOGLE_CHROME_BIN_VERSION}.desktop"
-fi
-
-sed -i "s:Icon=.*:Icon=$INSTALL_ROOT/opt/google/chrome/product_logo_256.png:" \
- "$deskfile"
+rpm2tar -O "$SOURCE_CACHE/$SOURCE" | tar x