aboutsummaryrefslogtreecommitdiff
path: root/www/firefox/firefox.build
blob: 3fb567136ca63c45ba0f622cdf706ca1258cb1f2 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>

source /usr/src/ports/Build/build.sh

NAME=firefox
VERSION=28.0
BUILD=1
DEPENDS=('gtk+ >= 2.24.17-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}: firefox (Mozilla Firefox Web browser)
${NAME}:
${NAME}: This project is a redesign of the Mozilla browser component written
${NAME}: using the XUL user interface language. Firefox empowers you to browse
${NAME}: faster, safer and more efficiently than with any other browser.
${NAME}:
${NAME}: Visit the Mozilla Firefox project online:
${NAME}:   http://www.mozilla.org/projects/firefox
${NAME}:
${NAME}:
${NAME}:
EOF

# Sources

BASEURL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${VERSION}"

# $(uname -m) here is a kludge because we should take care of the arch stuff
# before we get to this point. I.e. ${ARCH} should work here.
case "$(uname -m)" in
  x86)
    MOZREPO="${BASEURL}/linux-i686/en-US"
  ;;
  x86_64)
    MOZREPO="${BASEURL}/linux-x86_64/en-US"
  ;;
esac

SRCNAME[0]=${NAME}
SRCVERS[0]=${VERSION}
SRCPACK[0]=${MOZREPO}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
SRCOPTS[0]="pkgunpack"

build0()
{
install.dir ${PKG}/opt
mv firefox opt
install.dir ${PKG}${SYS_DIR[bin]}
(
  cd ${PKG}${SYS_DIR[bin]}
  ln -sf /opt/firefox/firefox
)
(
  cd opt/firefox/browser
  ln -s ${SYS_DIR[lib]}/plugins/mozilla plugins
)
sed -i "s|moz_libdir=/usr/local/lib/firefox-${VERSION}|moz_libdir=/opt/firefox|g" opt/firefox/firefox
}

SRCNAME[1]=${NAME}
SRCVERS[1]=slackware
SRCPACK[1]=${SRCNAME[1]}-${SRCVERS[1]}.tar.xz
SRCOPTS[1]="pkgunpack"

build1()
{
echo "Nothing to do here!"
}