Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 30th, 2010  |  syntax: Bash  |  size: 1.34 KB  |  views: 79  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Cedric MATHIEU <me.xenom @ gmail.com>
  2. # Contributor: coderoar <coderoar @ gmail.com>
  3.  
  4. pkgname=firefox-nightly
  5. pkgdesc='Standalone web browser from mozilla.org, nightly build'
  6. url='http://www.mozilla.org/projects/firefox'
  7. pkgver=4.0b9pre
  8. pkgrel=1
  9. arch=('i686' 'x86_64')
  10. license=('MPL' 'GPL' 'LGPL')
  11. source=('firefox-nightly.desktop' 'firefox-nightly-safe.desktop')
  12. sha1sums=('6880230bc487bd65c5da43c19498f4520793e27b' '7faa96301d1c3d7772da859b96b3420cb0f34bb3')
  13. depends=('desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info')
  14.  
  15. package() {
  16.   FX_SRC="firefox-${pkgver}.en-US.linux-${CARCH}.tar.bz2"
  17.   FX_SRC_URI="http://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/${FX_SRC}"
  18.  
  19.   msg "Downloading..."
  20.   wget -N ${FX_SRC_URI}
  21.   msg "Extracting..."
  22.   bsdtar -x -f ${FX_SRC}
  23.   msg "Packaging..."
  24.  
  25. #   uncomment this line to remove these
  26. #   rm -rf firefox/{extensions,plugins,searchplugins}
  27.  
  28.   mkdir -p "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt}
  29.   cp -r firefox "${pkgdir}/opt/firefox-${pkgver}"
  30.  
  31.   ln -s /opt/firefox-${pkgver}/firefox "${pkgdir}/usr/bin/firefox-nightly"
  32.   install -m644 "${srcdir}"/{firefox-nightly.desktop,firefox-nightly-safe.desktop} "${pkgdir}/usr/share/applications/"
  33.   install -m644 "${srcdir}/firefox/icons/mozicon128.png" "${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png"
  34. }