summaryrefslogtreecommitdiffstats
path: root/firefox-nightly
diff options
context:
space:
mode:
Diffstat (limited to 'firefox-nightly')
-rw-r--r--firefox-nightly/PKGBUILD32
1 files changed, 21 insertions, 11 deletions
diff --git a/firefox-nightly/PKGBUILD b/firefox-nightly/PKGBUILD
index f90f949..a74ab05 100644
--- a/firefox-nightly/PKGBUILD
+++ b/firefox-nightly/PKGBUILD
@@ -1,28 +1,38 @@
# 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
+pkgdesc='Standalone web browser from mozilla.org, nightly build.'
url='http://www.mozilla.org/projects/firefox'
+pkgver=3.7a1pre
+pkgrel=$(date +%Y_%m_%d_%T)
+
+source=( 'firefox-nightly.desktop' 'firefox-nightly-safe.desktop' )
+md5sums=( '940233ba24a2de784ea6c610872f01e4' '488e66c72fb678d2b99a22fe87bc5974' )
+sha1sums=('6880230bc487bd65c5da43c19498f4520793e27b' '7faa96301d1c3d7772da859b96b3420cb0f34bb3')
+
+depends=( 'desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info' )
+makedepends=('wget')
build() {
cd ${srcdir}
+ FX_SRC="firefox-${pkgver}.en-US.linux-${CARCH}.tar.bz2"
+ FX_SRC_URI="http://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/${FX_SRC}"
+
+ msg "Downloading..."
+ wget ${FX_SRC_URI} || return 1
+ msg "Extracting..."
+ bsdtar -x -f ${FX_SRC} || return 1
+ msg "Packaging..."
+
# 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
+ 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