Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 20th, 2011  |  syntax: None  |  size: 1.38 KB  |  views: 98  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
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 : Det <nimetonmaili @ gmail.com>
  3. # Contributor: coderoar <coderoar @ gmail.com>
  4.  
  5. pkgname=firefox-nightly
  6. pkgdesc='Standalone web browser from mozilla.org, nightly build'
  7. url='http://www.mozilla.org/projects/firefox'
  8. pkgver=12.0a1
  9. pkgrel=1
  10. arch=('i686' 'x86_64')
  11. license=('MPL' 'GPL' 'LGPL')
  12. source=('firefox-nightly.desktop' 'firefox-nightly-safe.desktop')
  13. sha1sums=('d998c8a825bb0f58594f822a2e2fbb7c0a1a3ce8' 'd98f7a35fd423a9701dcaef7d4bbffee939198c7')
  14. depends=('desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info')
  15.  
  16. package() {
  17.   FX_SRC="firefox-${pkgver}.en-US.linux-${CARCH}.tar.bz2"
  18.   FX_SRC_URI="http://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/${FX_SRC}"
  19.  
  20.   msg "Downloading..."
  21.   wget -N ${FX_SRC_URI}
  22.   msg "Extracting..."
  23.   bsdtar -x -f ${FX_SRC}
  24.   msg "Packaging..."
  25.  
  26. #   uncomment this line to remove these
  27. #   rm -rf firefox/{extensions,plugins,searchplugins}
  28.  
  29.   mkdir -p "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt}
  30.   cp -r firefox "${pkgdir}/opt/firefox-${pkgver}"
  31.  
  32.   ln -s /opt/firefox-${pkgver}/firefox "${pkgdir}/usr/bin/firefox-nightly"
  33.   install -m644 "${srcdir}"/{firefox-nightly.desktop,firefox-nightly-safe.desktop} "${pkgdir}/usr/share/applications/"
  34.   install -m644 "${srcdir}/firefox/icons/mozicon128.png" "${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png"
  35. }
clone this paste RAW Paste Data