diff options
Diffstat (limited to 'firefox-nightly')
-rw-r--r-- | firefox-nightly/PKGBUILD | 50 |
1 files changed, 22 insertions, 28 deletions
diff --git a/firefox-nightly/PKGBUILD b/firefox-nightly/PKGBUILD index aa557c6..e1ecf2c 100644 --- a/firefox-nightly/PKGBUILD +++ b/firefox-nightly/PKGBUILD @@ -1,41 +1,35 @@ # Maintainer: Cedric MATHIEU <me.xenom @ gmail.com> +# Contributor : Det # Contributor: coderoar <coderoar @ gmail.com> -arch=('i686' 'x86_64') -license=('MPL' 'GPL' 'LGPL') - pkgname=firefox-nightly -pkgdesc='Standalone web browser from mozilla.org, nightly build.' +pkgdesc='Standalone web browser from mozilla.org, nightly build' url='http://www.mozilla.org/projects/firefox' -pkgver=4.0b9pre +pkgver=4.0b10pre pkgrel=$(date +%Y_%m_%d_%T) - -source=( 'firefox-nightly.desktop' 'firefox-nightly-safe.desktop' ) -md5sums=( '940233ba24a2de784ea6c610872f01e4' '488e66c72fb678d2b99a22fe87bc5974' ) +arch=('i686' 'x86_64') +license=('MPL' 'GPL' 'LGPL') +source=('firefox-nightly.desktop' 'firefox-nightly-safe.desktop') sha1sums=('6880230bc487bd65c5da43c19498f4520793e27b' '7faa96301d1c3d7772da859b96b3420cb0f34bb3') +depends=('desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info') -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}" +package() { + 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..." + msg "Downloading..." + wget -N ${FX_SRC_URI} + msg "Extracting..." + bsdtar -x -f ${FX_SRC} + msg "Packaging..." -# uncomment this line to remove them if you want -# rm -rf firefox/{extensions,plugins,searchplugins} || return 1 +# uncomment this line to remove these +# rm -rf firefox/{extensions,plugins,searchplugins} - mkdir -p ${pkgdir}/{usr/{bin,share/{applications,pixmaps}},opt} || return 1 - cp -R firefox ${pkgdir}/opt/firefox-${pkgver} || return 1 + mkdir -p "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt} + cp -r firefox "${pkgdir}/opt/firefox-${pkgver}" - 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 - install -m644 ${srcdir}/firefox/icons/mozicon128.png ${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png || return 1 + ln -s /opt/firefox-${pkgver}/firefox "${pkgdir}/usr/bin/firefox-nightly" + install -m644 "${srcdir}"/{firefox-nightly.desktop,firefox-nightly-safe.desktop} "${pkgdir}/usr/share/applications/" + install -m644 "${srcdir}/firefox/icons/mozicon128.png" "${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png" } |