aboutsummaryrefslogtreecommitdiff
path: root/www/google_chrome/google_chrome.build
blob: 23b3fb9d3b31c8814d5214e92b24cb29789e872e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
}