# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=xulrunner pkgver=2.0 _ffoxver=4.0 pkgrel=3 pkgdesc="runtime environment for xul-based applications" url="http://developer.mozilla.org/en/XULRunner" arch="all" license="GPL LGPL MPL" depends= depends_dev="nspr-dev nss-dev gtk+-dev dbus-glib-dev alsa-lib-dev libvorbis-dev libogg-dev libtheora-dev wireless-tools-dev libnotify-dev libevent-dev libxt-dev jpeg-dev bzip2-dev hunspell-dev startup-notification-dev sqlite-dev libidl-dev fts-dev mesa-dev" makedepends="$depends_dev autoconf2.13 python zip yasm autoconf automake libtool" install="" subpackages="$pkgname-dev" # http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/${pkgver}/source/${pkgname}-${pkgver}.source.tar.bz2 source="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${_ffoxver}/source/firefox-${_ffoxver}.source.tar.bz2 mozconfig enable-x86_64-tracemonkey.patch fix-xulrunner-launcher.patch mozilla-pkgconfig.patch xulrunner-mozalloc.patch xulrunner-version.patch mozjs-c99math.patch gecko-c99math.patch fix-mozilla-portability-cluelessness-libpr0n-edition.patch" _xulrunner_version="1.9.2" _builddir="${srcdir}/mozilla-2.0" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done cp "${srcdir}/mozconfig" .mozconfig } build() { cd "$_builddir" # mozilla's buildsystem is on drugs, so we just kill our CFLAGS and hope # for the best. --nenolod unset CFLAGS unset CXXFLAGS make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" -f client.mk install || return 1 msg "Setting up compatibility symlinks..." ln -sf /usr/lib/xulrunner-${_xulrunner_version}/libxul.so "${pkgdir}"/usr/lib/libxul.so ln -sf /usr/lib/xulrunner-${_xulrunner_version}/libxpcom.so "${pkgdir}"/usr/lib/libxpcom.so ln -sf /usr/lib/xulrunner-${_xulrunner_version}/libmozalloc.so "${pkgdir}"/usr/lib/libmozalloc.so } dev() { replaces="xulrunner" mkdir -p "${subpkgdir}"/usr/lib mv "${pkgdir}"/usr/lib/xulrunner-devel-${_xulrunner_version} "${subpkgdir}"/usr/lib mv "${pkgdir}"/usr/lib/pkgconfig "${subpkgdir}"/usr/lib mv "${pkgdir}"/usr/include "${subpkgdir}"/usr/include } md5sums="3468a2c463b4fc2788ba621e4b511c30 firefox-4.0.source.tar.bz2 de64a11f40bb6e8800ba799d1b2b8d85 mozconfig 78291eb2cd97553d8fd76306c52d40f1 enable-x86_64-tracemonkey.patch 86d33a17286131d9ef4cdfb35ee56f1f fix-xulrunner-launcher.patch 02c23dc4ebd88e445533314716331818 mozilla-pkgconfig.patch d38ecbb7bb31032d3e1ced8939e26abd xulrunner-mozalloc.patch 371303c5bdc4fa0d955d14521b93b69d xulrunner-version.patch b187440207e773e9be606594d2c99216 mozjs-c99math.patch aacbb29e1448f9af6697e8a885b9bbfa gecko-c99math.patch d18eb944a7a5275a1837b2a536689186 fix-mozilla-portability-cluelessness-libpr0n-edition.patch"