# $Id: PKGBUILD 22983 2008-12-30 18:11:22Z jgc $ # Maintainer: Alexander Baldeck # Contributor: Jan de Groot pkgname=xulrunner pkgver=1.9.0.5 pkgrel=2 pkgdesc="Mozilla Runtime Environment" arch=(i686 x86_64) license=('MPL' 'GPL' 'LGPL') depends=('gtk2>=2.14.6' 'gcc-libs>=4.3.2' 'libidl2>=0.8.11' 'mozilla-common' 'nss>=3.12.2' 'libxt' 'lcms' 'hunspell>=1.2.8' 'startup-notification>=0.9') makedepends=('zip' 'pkgconfig' 'diffutils' 'libgnomeui>=2.24.0') provides=(gecko-sdk) replaces=(gecko-sdk) url="http://wiki.mozilla.org/XUL:Xul_Runner" source=(ftp://ftp.archlinux.org/other/xulrunner/${pkgname}-${pkgver}-source.tar.bz2 #http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/${pkgver}/source/${pkgname}-${pkgver}-source.tar.bz2 mozconfig 100-system-hunspell-corrections.patch bzXXX_pc_honour_system_nspr_nss.patch mozilla-pkgconfig.patch fix-mozilla-launcher.patch mozilla-ps-pdf-simplify-operators.patch nsThreadUtils.patch) md5sums=('aef76915c3fb35b9229d9eb2c8b2580a' '6509d12e6b17bfc51c09e1dc35259035' '5efd6772ed0ecf8eddec5d5650191d3c' '7a5151f90cb360bc1ea911e5cf7208e9' 'dfbfb4e35912112668ac66dae0783686' '63eee2d1da3b43c9d604f2253f242f40' '13dca58c04e62a8916691c63c5c492a0' 'ccc3a0672c783c043434f256fbd38c86') build() { cd ${startdir}/src/mozilla cp ${startdir}/src/mozconfig .mozconfig #Upstream patch. Still not applied to 1.9.0.1 patch -Np1 -i ${srcdir}/mozilla-ps-pdf-simplify-operators.patch || return 1 #fix build with system hunspell - gentoo patch -Np0 -i ${srcdir}/100-system-hunspell-corrections.patch || return 1 #fix pkgconfig files when building with system nss/nspr - ubuntu patch -Np1 -i ${srcdir}/bzXXX_pc_honour_system_nspr_nss.patch || return 1 #fix libdir/sdkdir - fedora - with local modifications patch -Np1 -i ${srcdir}/mozilla-pkgconfig.patch || return 1 #Fix stub launcher - archlinux patch -Np0 -i ${srcdir}/fix-mozilla-launcher.patch || return 1 #Fix epiphany crashes - requires epiphany rebuild patch -Np1 -i ${srcdir}/nsThreadUtils.patch || return 1 unset CFLAGS unset CXXFLAGS export LDFLAGS="-Wl,-rpath,/usr/lib/xulrunner-1.9" make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1 make -j1 DESTDIR=${startdir}/pkg install || return 1 ln -sf xulrunner-${pkgver} ${pkgdir}/usr/lib/xulrunner-1.9 ln -sf xulrunner-devel-${pkgver} ${pkgdir}/usr/lib/xulrunner-devel-1.9 ln -sf xulrunner-${pkgver} ${pkgdir}/usr/include/xulrunner-1.9 ln -sf xulrunner-${pkgver} ${pkgdir}/usr/share/idl/xulrunner-1.9 # The ubuntu patch adds these... get rid of it, NSS/NSPR has it. rm -f ${startdir}/pkg/usr/lib/pkgconfig/mozilla-ns{s,pr}.pc || return 1 sed -i -e "s/xulrunner-${pkgver}/xulrunner-1.9/g" -e "s/xulrunner-devel-${pkgver}/xulrunner-devel-1.9/g" ${pkgdir}/usr/lib/pkgconfig/*.pc || return 1 }