public
Created

firefox-aurora PKGBUILD

  • Download Gist
PKGBUILD.sh
Shell
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 31 32 33 34 35 36
# 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
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.