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

PKGBUILD icecat 3.6.4

By: a guest on Jul 20th, 2010  |  syntax: None  |  size: 2.37 KB  |  views: 56  |  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. # Contributor: figue <ffigue at gmail>
  2. # Contributor (Parabola): fauno <fauno@kiwwwi.com.ar>
  3. # Thank you very much to the older contributors:
  4. # Contributor: evr <evanroman at gmail>
  5. # Contributor: Muhammad 'MJ' Jassim <UnbreakableMJ@gmail.com>
  6.  
  7. pkgname=icecat
  8. pkgver=3.6.4
  9. _pkgver=3.6.4
  10. pkgrel=1
  11. _xulver=1.9.2.6
  12. pkgdesc="GNU version of the Firefox browser"
  13. arch=(i686 x86_64)
  14. url="http://www.gnu.org/software/gnuzilla/"
  15. license=('GPL2' 'MPL' 'LGPL')
  16. depends=('xulrunner=1.9.2.6' 'desktop-file-utils' 'mime-types' 'shared-mime-info')
  17. makedepends=('zip' 'libgnomeui>=2.22.1' 'python' 'wireless_tools' 'autoconf')
  18. provides=('firefox')
  19. install=icecat.install
  20. source=(http://ftp.gnu.org/gnu/gnuzilla/${_pkgver}/${pkgname}-${_pkgver}.tar.xz
  21.         mozconfig
  22.         icecat.desktop
  23.         icecat-safe.desktop
  24.         mozilla-firefox-1.0-lang.patch
  25.         xulrunner-copy-stub.patch)
  26.  
  27. build() {
  28.   ICECATDIR="/usr/lib/${pkgname}-${pkgver}" && export ICECATDIR
  29.  
  30.   cd "${srcdir}/${pkgname}-${_pkgver}/"
  31.   patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch" || return 1
  32.   patch -Np0 -i "${srcdir}/xulrunner-copy-stub.patch" || return 1
  33.  
  34.   cp "${srcdir}/mozconfig" .mozconfig
  35.   unset CFLAGS
  36.   unset CXXFLAGS
  37.  
  38.   export LDFLAGS="-Wl,-rpath,/usr/lib/${pkgname}-${pkgver}/"
  39.  
  40.   make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
  41.   make -j1 DESTDIR="${pkgdir}" install || return 1
  42.  
  43.   cd ${pkgdir}/${ICECATDIR}
  44.   ln -s ${pkgname} firefox
  45.   ln -s ${pkgname}-bin firefox-bin
  46.   cd ..
  47.   ln -s ${ICECATDIR} icecat
  48.  
  49.   install -m755 -d ${pkgdir}/usr/share/applications
  50.   install -m755 -d ${pkgdir}/usr/share/pixmaps
  51.   install -m644 ${srcdir}/${pkgname}-${_pkgver}/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/icecat.png || return 1
  52.   install -m644 ${srcdir}/icecat.desktop ${pkgdir}/usr/share/applications/ || return 1
  53.   install -m644 ${srcdir}/icecat-safe.desktop ${pkgdir}/usr/share/applications/ || return 1
  54.  
  55.   ##copy default prefs manually, icecat fails to start otherwise
  56.   cp -rf ${srcdir}/${pkgname}-${_pkgver}/dist/bin/defaults/preferences ${pkgdir}${ICECATDIR}/defaults
  57.  
  58. }
  59.  
  60. md5sums=('877c092bc8c204a339f88bf093b0585f'
  61.          '1bb4a77a63891bd82b2e9fc7caecd4b6'
  62.          'e81ad01dbc16ba28bf92ba4b7c309ca7'
  63.          'd93fe402b87cd000a869e1fd6badc6c9'
  64.          'bd5db57c23c72a02a489592644f18995'
  65.          '5a1938673a367b20ecfa009a5eb767aa')
clone this paste RAW Paste Data