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

ArchLinux AUR xulrunner192 - recovered version 1.9.2.28-3

By: a guest on Jan 11th, 2013  |  syntax: Bash  |  size: 3.57 KB  |  views: 65  |  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. # $Id: PKGBUILD 112304 2011-03-04 19:29:22Z ibiru $
  2. # Maintainer: Jan de Groot <jgc@archlinux.org>
  3. # Contributor: Alexander Baldeck <alexander@archlinux.org>
  4. # Contributor: David Roheim <david dot roheim at gmail dot com>
  5. pkgname=xulrunner192
  6. pkgver=1.9.2.28
  7. _ffoxver=3.6.28
  8. pkgrel=3
  9. pkgdesc="Mozilla Runtime Environment"
  10. arch=('i686' 'x86_64')
  11. license=('MPL' 'GPL' 'LGPL')
  12. depends=('gtk2' 'gcc-libs' 'libidl2' 'mozilla-common' 'nss' 'libxt' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'libevent' 'sqlite>=3.7.4' 'libnotify>=0.4')
  13. makedepends=('zip' 'pkg-config' 'diffutils' 'libgnomeui' 'python2' 'wireless_tools' 'autoconf2.13')
  14. url="http://wiki.mozilla.org/XUL:Xul_Runner"
  15.  
  16. source=(ftp://mirrors.kernel.org/slackware/slackware-13.1/patches/source/mozilla-firefox/firefox-${_ffoxver}.source.tar.bz2
  17.         mozconfig
  18.         mozilla-pkgconfig.patch
  19.         fix-mozilla-launcher.patch
  20.         xulrunner-version.patch
  21.         xulrunner-png14.patch
  22.         xulrunner-png15.patch
  23.         enable-x86_64-tracemonkey.patch
  24.         offsetof.patch
  25.         python2.7.patch
  26.         file_util.patch
  27.         message_pump_libevent.patch
  28.         file_descriptor_set_posix.patch
  29.         file_util_linux.patch
  30.         time_posix.patch
  31.         scopefixes.patch)
  32.  
  33. md5sums=('175fea06e1af7c76992e23865e4456eb'
  34.          '1c5fdebaee7b96308e17d478fbdb3ac3'
  35.          'd839d1c4ef736e6d89ccf91b23b965a4'
  36.          '63eee2d1da3b43c9d604f2253f242f40'
  37.          '371303c5bdc4fa0d955d14521b93b69d'
  38.          '3bd0566180ad2daa32743b3ce58b2095'
  39.          '65eaf73452b1d974aa1065022d693132'
  40.          'cbd938cd1fb8210cd8a2c41833489af9'
  41.          'c39773f884c79773db10a1216722441e'
  42.          'ab3dc9aecae7f08b9492fb3c00a5fd28'
  43.          '26be7284706ff5f740deb3e83e6cf29c'
  44.          '187ec32c67744df73bb76fd5057a06a6'
  45.          '2352dcccac6c0913d5f68c4e6236af50'
  46.          '642a2fcc49e160385707ff903e17a25a'
  47.          'b3c4fc2396635efc38d4c649ca054ed8')
  48.  
  49. build() {
  50.   cd "${srcdir}/mozilla-1.9.2"
  51.   cp "${srcdir}/mozconfig" .mozconfig
  52.  
  53.   patch -Np1 -i "${srcdir}/offsetof.patch"
  54.  
  55.   #Fix C++ 4.7 compile errors
  56.   patch -Np1 -i "${srcdir}/file_util.patch"
  57.   patch -Np1 -i "${srcdir}/message_pump_libevent.patch"
  58.   patch -Np1 -i "${srcdir}/file_descriptor_set_posix.patch"
  59.   patch -Np1 -i "${srcdir}/file_util_linux.patch"
  60.   patch -Np1 -i "${srcdir}/time_posix.patch"
  61.   patch -Np1 -i "${srcdir}/scopefixes.patch"
  62.  
  63.   #fix libdir/sdkdir - fedora
  64.   patch -Np1 -i "${srcdir}/mozilla-pkgconfig.patch"
  65.  
  66.   #Fix stub launcher - archlinux
  67.   patch -Np0 -i "${srcdir}/fix-mozilla-launcher.patch"
  68.  
  69.   #Force installation to the same path for every version
  70.   patch -Np1 -i "${srcdir}/xulrunner-version.patch"
  71.  
  72.   #Fix compile with libpng 1.4
  73.   patch -Np0 -i "${srcdir}/xulrunner-png14.patch"
  74.  
  75.   #Fix compile with libpng 1.5
  76.   patch -Np0 -i "${srcdir}/xulrunner-png15.patch"
  77.  
  78.   #Tracemonkey for x86_64
  79.   patch -Np0 -i "${srcdir}/enable-x86_64-tracemonkey.patch"
  80.  
  81.   #python2.7
  82.   patch -Np0 -i "${srcdir}/python2.7.patch"
  83.  
  84.   unset CFLAGS
  85.   unset CXXFLAGS
  86.  
  87.   make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS"
  88. }
  89.  
  90. package() {
  91.   cd "${srcdir}/mozilla-1.9.2"
  92.   make -j1 DESTDIR="${pkgdir}" install
  93.  
  94.   #Remove included dictionaries, add symlink to system myspell path.
  95.   #Note: this will cause file conflicts when users have installed dictionaries in the old location
  96.   rm -rf "${pkgdir}/usr/lib/xulrunner-1.9.2/dictionaries"
  97.   ln -sf /usr/share/myspell/dicts "${pkgdir}/usr/lib/xulrunner-1.9.2/dictionaries"
  98.  
  99.   rm -f "${pkgdir}/usr/bin/xulrunner"
  100.   rm -rf "${pkgdir}/usr/lib/pkgconfig"
  101.  
  102. }