Skip to content

Instantly share code, notes, and snippets.

@fmoralesc
Created November 9, 2011 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmoralesc/1353331 to your computer and use it in GitHub Desktop.
Save fmoralesc/1353331 to your computer and use it in GitHub Desktop.
firefox-aurora PKGBUILD
# Maintainer: Dan Serban
# Contributors: L42y, aeosynth, fmoralesc
pkgname=firefox-aurora
pkgver=latest
pkgrel=1
pkgdesc="Aurora channel"
url=http://www.mozilla.org/projects/firefox/
arch=(i686 x86_64)
license=(MPL GPL LGPL)
provides=('firefox>=4.0')
depends=(desktop-file-utils libxt mime-types nss shared-mime-info)
source=(firefox-aurora.desktop
firefox-aurora-safe.desktop)
md5sums=('663176661ce817e40b4217c5e107df42'
'1fbf95734ceb475ac2ac6ab085fc1961')
_url_prefix="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/"
package()
{
msg "Finding newest version..."
wget --spider --no-remove-listing --no-verbose "${_url_prefix}*linux-${CARCH}.tar.bz" 2>/dev/null
_file=`cat .listing | grep linux-${CARCH}.tar.bz | awk '{print $9}' | sort | head -n 1 | tr -d '\r'`
echo "Found ${_file}"
msg "Downloading..."
wget ${_url_prefix}${_file}
msg "Extracting..."
bsdtar -xf ${_file}
mkdir -p "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt}
mv firefox firefox-aurora
mv firefox-aurora "${pkgdir}"/opt/
ln -s /opt/firefox-aurora/firefox "${pkgdir}"/usr/bin/firefox-aurora
install -m644 "${startdir}"/{firefox-aurora.desktop,firefox-aurora-safe.desktop} "${pkgdir}"/usr/share/applications/
install -m644 "${pkgdir}"/opt/firefox-aurora/icons/mozicon128.png "${pkgdir}"/usr/share/pixmaps/firefox-aurora-icon.png
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment