# Contributor: William Pitcock # Maintainer: Natanael Copa pkgname=xulrunner pkgver=24.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 get_nproc.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 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="06a4c0fe8d3a979aea2fce8d0fdbf328 firefox-24.0.source.tar.bz2 b348970fea1377bb4e9a5271f23cedcb mozconfig f43c1f0ae57aa8289b130c6de8caf3ce 0002-Use-C99-math-isfinite.patch e8b3a22d670241bb5c038729ac49a975 0003-xulrunner-jemalloc-aslr.patch d3d1e831185da3a3e9ddf56c33449c70 uclibc-malloc_usable_size.patch 507742325de8687529e4e81e31132ddf getchar.patch 9d7d00c019b6bdb0473ff0e63836430f get_nproc.patch 623cd16618c57f037ab4132dfe8694b0 stat.patch 10600ca1b36ff177bf4e301056553cf4 moz-libc-filename.patch 4383d038b8d8411ea46f4a109197c19e stab.h" sha256sums="86a6efa501e1b106b597a8506757f3a2db9d3a5cfcc61ea29a9ad0c834bea83b firefox-24.0.source.tar.bz2 c6d7723640ef3f6c0207a35c4403a81cce05b6f4db286666be93e336efd53866 mozconfig 2f319883300f2aef180bfb80221151fcbb29344a5a0a086d6ad1d80005daf039 0002-Use-C99-math-isfinite.patch 324d5cd26858ad21bb4680db8635fb3fd014bf00a637bf9fb2b118c2925fc5e7 0003-xulrunner-jemalloc-aslr.patch 70d93003a95d3a89bd3193d46a278f094a6b983aa660781e4090d58cf1c488a2 uclibc-malloc_usable_size.patch d14357bf44f702d94b8d3ed79bdf81f6271370745c1ac8fa83522bd98be4adc4 getchar.patch ce7417acd8ed04adb533532814472de7cae279bbbeffb57b8a99af523f397623 get_nproc.patch 41d55a1d807c84e624da8c258410e8689559d108a4dc56118c6c4755dee514df stat.patch b2f72d12a2df3bc84d2582d70ec9fc26099bc87c26c303ec5c08ac2e26fe35db moz-libc-filename.patch 960d82bbfdc88c95f5cb4f2e1c1bf23dae7519b3b7203914d7b3ddbff1ba4c28 stab.h" sha512sums="541a26eb939a2cf9a2ec4f4469fdc12008f097c4f615cb196299cbdb855931df5aea288f842dce57e2bb0069ec76e2a748823474e30a6077a9138db5ddb3ee46 firefox-24.0.source.tar.bz2 1f7759c3b1953d01c19c5d6b320d5b0eeec9d875ae1310be5f3e79032f0dc8c7290ece807bae5dfea6e6a3ff52507bccf9bd463b8933087409f43125b125930e mozconfig 9a6666a3b637549411ea562c9d0d6d617ed48327d0f9e4e64d27f43774c218e6c5cf5fa99d4b339a5a0f89b854a18079392eba0dafc3419adbd4cdd5d71d3f26 0002-Use-C99-math-isfinite.patch 46caf196a9f68614c42b793befc7dc85438d30ce47c06ccc925aae14728d67b0d29192edba430c0a6237192e6d51db26dfc6e6190bc01937a828effd8136f37b 0003-xulrunner-jemalloc-aslr.patch 9845400d4a3c5cc4f0c7a80292c555f8192ba5093f59baed86d63c575aa50d73597588a6236948c25619e9dbaad72508abd91edf16374904d0d8345a94755ffc uclibc-malloc_usable_size.patch 18f0696bf4d032c83041110b83ae6531b48474a778fc1deade3b06ba2ae1bfcc9891059287bfb78317c2f5ddc88f5b7ce957312acdb63d4902a57e0b40eb6520 getchar.patch f4efb791283b30876d5877623c8d1f7ff2295fd8d004ddd3d221d6ee2701e704ed0221a48130d9ae6c94b097c4e01e5dfe03342345c098571a2408c9a5c755ab get_nproc.patch e975bc5a0f77e29a2afb848cd0c164f9c0edabf0d96472d6b23e2b08fa2bbe3b51ee63c16c986e7fc9bc243c666b23c37d0b939cbf4c258b9dce5c3ee77d6f55 stat.patch 136e3fc82b77562f53b09e5aa1d81f9db43196b6a1a9bbf271651d022837cb565a6807ce62ce7e99cc40db87edbba2b8b6c198761ac6ebee091c0615e10067dd moz-libc-filename.patch 0b3f1e4b9fdc868e4738b5c81fd6c6128ce8885b260affcb9a65ff9d164d7232626ce1291aaea70132b3e3124f5e13fef4d39326b8e7173e362a823722a85127 stab.h"