summaryrefslogtreecommitdiffstats
path: root/firefox-nightly/PKGBUILD
blob: f90f9491ac97702d1dfc98cba8a15ddb294a4754 (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
# Maintainer: coderoar <coderoar@gmail.com>

arch=('i686' 'x86_64')
depends=('desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info')
license=('MPL' 'GPL' 'LGPL')
md5sums=('940233ba24a2de784ea6c610872f01e4' '488e66c72fb678d2b99a22fe87bc5974' '')
pkgdesc='Standalone web browser from mozilla.org, nightly build.'
pkgname=firefox-nightly
pkgrel=2
pkgver=3.7a1pre
if [[ ${CARCH} = 'i686' ]]; then
	source=('firefox-nightly.desktop' 'firefox-nightly-safe.desktop' 'http://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/firefox-3.7a1pre.en-US.linux-i686.tar.bz2')
else
	source=('firefox-nightly.desktop' 'firefox-nightly-safe.desktop' 'http://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/firefox-3.7a1pre.en-US.linux-x86_64.tar.bz2')
fi
url='http://www.mozilla.org/projects/firefox'

build() {
	cd ${srcdir}

#	uncomment this line to remove them if you want
#	rm -rf firefox/{extensions,plugins,searchplugins} || return 1

	mkdir -p ${pkgdir}/{usr/{bin,share/{applications,pixmaps}},opt} || return 1
	cp -r firefox ${pkgdir}/opt/firefox-${pkgver} || return 1

	ln -s /opt/firefox-${pkgver}/firefox ${pkgdir}/usr/bin/firefox-nightly || return 1
	install -m644 ${srcdir}/{firefox-nightly.desktop,firefox-nightly-safe.desktop} ${pkgdir}/usr/share/applications/ || return 1
	install -m644 ${srcdir}/firefox/icons/mozicon128.png ${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png || return 1
}