# Contributor: William Pitcock # Maintainer: Natanael Copa pkgname=xulrunner pkgver=26.0 _ffoxver=$pkgver pkgrel=0 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 gstreamer-dev gst-plugins-base-dev libvorbis-dev libogg-dev libtheora-dev wireless-tools-dev libnotify-dev libevent-dev libvpx-dev libxt-dev libjpeg-turbo-dev bzip2-dev hunspell-dev startup-notification-dev sqlite-dev libidl-dev mesa-dev" makedepends="$depends_dev autoconf2.13 python zip yasm paxctl autoconf automake libtool" install="" options="" subpackages="$pkgname-dev" source="ftp://ftp.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.bz2 mozconfig 0002-Use-C99-math-isfinite.patch 0003-xulrunner-jemalloc-aslr.patch uclibc-malloc_usable_size.patch getchar.patch stat.patch moz-libc-filename.patch stab.h " # help our shared-object scanner to find the libs ldpath="/usr/lib/xulrunner-$pkgver" _builddir="${srcdir}/mozilla-release" 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 || return 1 sed -e "s/#${CLIBC}#//g" -i .mozconfig cp "$srcdir"/stab.h toolkit/crashreporter/google-breakpad/src/ } 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" # only used for startupcache creation. paxctl -c -m */dist/bin/xpcshell || return 1 make -j1 DESTDIR="$pkgdir" -f client.mk install || return 1 # make install does not install xpt.py but its needed by firefox mkdir -p "$pkgdir"/usr/lib/xulrunner-devel-$pkgver/sdk/bin cp xpcom/typelib/xpt/tools/xpt.py \ "$pkgdir"/usr/lib/xulrunner-devel-$pkgver/sdk/bin/ msg "Setting up compatibility symlinks..." ln -sf /usr/lib/xulrunner-${pkgver}/libxul.so "${pkgdir}"/usr/lib/libxul.so ln -sf /usr/lib/xulrunner-${pkgver}/libmozalloc.so "${pkgdir}"/usr/lib/libmozalloc.so } dev() { replaces="xulrunner" depends="xulrunner" mkdir -p "${subpkgdir}"/usr/lib mv "${pkgdir}"/usr/lib/xulrunner-devel-${pkgver} "${subpkgdir}"/usr/lib mv "${pkgdir}"/usr/lib/pkgconfig "${subpkgdir}"/usr/lib mv "${pkgdir}"/usr/include "${subpkgdir}"/usr/include } md5sums="91ce51cc6474f1269484e5327643a59c firefox-26.0.source.tar.bz2 4332546696b520412b0dcf2ba8931c06 mozconfig f43c1f0ae57aa8289b130c6de8caf3ce 0002-Use-C99-math-isfinite.patch e8b3a22d670241bb5c038729ac49a975 0003-xulrunner-jemalloc-aslr.patch d3d1e831185da3a3e9ddf56c33449c70 uclibc-malloc_usable_size.patch 507742325de8687529e4e81e31132ddf getchar.patch 84b101ca9b5f91d3387851e1c42d3908 stat.patch 86b5eb4bb890a45808cc3a46b99cd8a5 moz-libc-filename.patch 4383d038b8d8411ea46f4a109197c19e stab.h" sha256sums="31c4fb2792df63ae450e350380a5e18cf1c51487011a9da0b6cc4bffb69d9812 firefox-26.0.source.tar.bz2 a5ab8c12da5f266458e7f456205a58ea3bedcce717dae9e2087cf59db9598a64 mozconfig 2f319883300f2aef180bfb80221151fcbb29344a5a0a086d6ad1d80005daf039 0002-Use-C99-math-isfinite.patch 324d5cd26858ad21bb4680db8635fb3fd014bf00a637bf9fb2b118c2925fc5e7 0003-xulrunner-jemalloc-aslr.patch 70d93003a95d3a89bd3193d46a278f094a6b983aa660781e4090d58cf1c488a2 uclibc-malloc_usable_size.patch d14357bf44f702d94b8d3ed79bdf81f6271370745c1ac8fa83522bd98be4adc4 getchar.patch bcdfc27fb1561beb797ed8e3d14cb7c88de54a5aed2eb33bf84e331a2b0ec200 stat.patch 889856baa82413afb2f79b7b3e3add626e1ac181efd398e80c434836b793c294 moz-libc-filename.patch 960d82bbfdc88c95f5cb4f2e1c1bf23dae7519b3b7203914d7b3ddbff1ba4c28 stab.h" sha512sums="c0933eeb39aa1d5d83d4c85885b87e0b817d945eec4fe8fc1b15256008f14308fbf98d5a83217c112e1ad247133f839f6ad74156eed7b159d32d0fce26532713 firefox-26.0.source.tar.bz2 4e3a392276d82a1006351a673b853bd6e7a57f4ae9ec5806edd9e7c8d51edcbaeb32111423088231a7e887490b755ec9701508fe58564fe69dda7eee7b147551 mozconfig 9a6666a3b637549411ea562c9d0d6d617ed48327d0f9e4e64d27f43774c218e6c5cf5fa99d4b339a5a0f89b854a18079392eba0dafc3419adbd4cdd5d71d3f26 0002-Use-C99-math-isfinite.patch 46caf196a9f68614c42b793befc7dc85438d30ce47c06ccc925aae14728d67b0d29192edba430c0a6237192e6d51db26dfc6e6190bc01937a828effd8136f37b 0003-xulrunner-jemalloc-aslr.patch 9845400d4a3c5cc4f0c7a80292c555f8192ba5093f59baed86d63c575aa50d73597588a6236948c25619e9dbaad72508abd91edf16374904d0d8345a94755ffc uclibc-malloc_usable_size.patch 18f0696bf4d032c83041110b83ae6531b48474a778fc1deade3b06ba2ae1bfcc9891059287bfb78317c2f5ddc88f5b7ce957312acdb63d4902a57e0b40eb6520 getchar.patch 478bb56c8e87c5ce6ccf1dd31cfb48be8e1a817e77e3158f633cb48bd269692061f8728589b9cebfac04d484518c2525d61ba4988abe8ea274fdd419ee02ab34 stat.patch 005d603c4bb90b4ac0d91775cc500416ec218860971a0888316f4d6a92a51f3a67fa30eacbe12c826e589ac0e2ddf3e72eec451382653fd0d557804d4af1e9a6 moz-libc-filename.patch 0b3f1e4b9fdc868e4738b5c81fd6c6128ce8885b260affcb9a65ff9d164d7232626ce1291aaea70132b3e3124f5e13fef4d39326b8e7173e362a823722a85127 stab.h"