aboutsummaryrefslogtreecommitdiff
path: root/www/google_chrome
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 18:48:36 +0200
committerDeposite Pirate2018-09-16 18:48:36 +0200
commitd150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch)
treece5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /www/google_chrome
parentf29d3519ce073ec30f99754d93304324f7f26d65 (diff)
Add ports.
Diffstat (limited to 'www/google_chrome')
-rwxr-xr-xwww/google_chrome/google_chrome.build66
1 files changed, 66 insertions, 0 deletions
diff --git a/www/google_chrome/google_chrome.build b/www/google_chrome/google_chrome.build
new file mode 100755
index 0000000..23b3fb9
--- /dev/null
+++ b/www/google_chrome/google_chrome.build
@@ -0,0 +1,66 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=google_chrome
+VERSION=35.0.1916.114
+BUILD=1
+DEPENDS=('gtk+ >= 2.24.17-1' 'nss >= 3.14.3-1' 'gconf >= 3.2.6-1')
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: google_chrome (web browser)
+${NAME}:
+${NAME}: A fast web browser.
+${NAME}:
+${NAME}: Homepage: http://google.com/chrome
+${NAME}:
+${NAME}:
+${NAME}:
+${NAME}:
+${NAME}:
+${NAME}:
+EOF
+
+cat >> ${PKG}/install/doinst.sh <<EOF
+#!/bin/sh
+
+( cd opt/google/chrome ; chmod 4755 chrome-sandbox )
+EOF
+
+# Sources
+
+#FIXME: architecture kludge
+
+SRCNAME[0]=google-chrome
+SRCVERS[0]=stable_current_$(uname -m)
+SRCPACK[0]=https://dl.google.com/linux/direct/${SRCNAME[0]}-${SRCVERS[0]}.rpm
+SRCOPTS[0]="pkgunpack"
+
+build0()
+{
+# Symlink the startup script
+install.dir ${PKG}${SYS_DIR[bin]}
+( cd ${PKG}${SYS_DIR[bin]}; ln -sf /opt/google/chrome/google-chrome )
+# Install properly the icon
+install.dir ${PKG}${SYS_DIR[share]}/icons/hicolor
+for size in 256 128 64 48 32 24 22 16; do
+ dir=${PKG}${SYS_DIR[share]}/icons/hicolor/${size}x${size}/apps
+ install.dir ${dir}
+ ( cd ${dir} ; ln -sf /opt/google/chrome/product_logo_${size}.png google-chrome.png )
+done
+rm -rf \
+ ${PKG}${SYS_DIR[etc]} \
+ ${PKG}${SYS_DIR[share]}/gnome-control-center
+}