1 # Contributor: Lisa Denia <eiffel56@gmail.com>
2 pkgname=xulrunner-linden-cvs
6 pkgdesc="Mozilla Runtime Environment with Linden Labs patches"
8 url="http://wiki.secondlife.com/wiki/LLMozLib2"
9 license=('GPL' 'MPL' 'LGPL')
11 depends=("gtk2>=2.16.5" "gcc-libs>=4.4.1" "libidl2>=0.8.13" "nss>=3.12.3.1"
12 "libxt" "hunspell>=1.2.8" "startup-notification>=0.10" "mime-types" "dbus-glib>=0.80 "
14 makedepends=('cvs' 'make')
15 source=("gcc44fix.patch" "linden-${_linden_ver}.patch" "mozconfig")
16 md5sums=('6c6ba1180c19b4d3eec33abb84a50736'
17 '07dac887e4436d7133bc18e326c95140'
18 '8cfd19443a61c6b7c658a6323220037c')
20 _cvsroot=":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot"
22 _cvsrev="THUNDERBIRD_2_0_0_21_RELEASE"
28 msg "Connecting to $_cvsroot CVS server...."
29 if [ -d $_cvsmod/CVS ]; then
32 make -f client.mk real_fast-update MOZ_CO_PROJECT=xulrunner
34 cvs -d $_cvsroot co -r ${_cvsrev} mozilla/client.mk
36 make -f client.mk checkout MOZ_CO_PROJECT=xulrunner
39 msg "CVS checkout done or server timeout"
40 msg "Starting make..."
42 rm -rf "$srcdir/$_cvsmod-build"
43 cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
44 cd "$srcdir/$_cvsmod-build"
51 cp ${srcdir}/mozconfig .mozconfig || return 1
52 patch -p0 -i ${srcdir}/linden-${_linden_ver}.patch || return 1
53 patch -p2 -i ${srcdir}/gcc44fix.patch || return 1
55 make -f client.mk build || return 1
56 make -f client.mk DESTDIR=${pkgdir}/ install || return 1
58 # Manually copy dist/lib/libprofdirserviceprovider_s.a, SecondLife needs it
59 cp dist/lib/libprofdirserviceprovider_s.a ${pkgdir}/opt/xulrunner-linden/lib/xulrunner-1.8.1.21/