summaryrefslogtreecommitdiff
path: root/extra/xulrunner/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-22 23:15:05 +0000
committerroot <root@rshg054.dnsready.net>2011-12-22 23:15:05 +0000
commit34e6c976d28892a7bd3f7578f10fcfa57865472f (patch)
treec3bd6b5146aa6393df096632e92c57d0fcd4e85a /extra/xulrunner/PKGBUILD
parent69d24275e4d5296a5f02e4c4d0fc438a80d159b8 (diff)
Thu Dec 22 23:15:04 UTC 2011
Diffstat (limited to 'extra/xulrunner/PKGBUILD')
-rw-r--r--extra/xulrunner/PKGBUILD27
1 files changed, 17 insertions, 10 deletions
diff --git a/extra/xulrunner/PKGBUILD b/extra/xulrunner/PKGBUILD
index b148f188f..616bba0aa 100644
--- a/extra/xulrunner/PKGBUILD
+++ b/extra/xulrunner/PKGBUILD
@@ -1,24 +1,23 @@
-# $Id: PKGBUILD 142354 2011-11-08 18:38:40Z ibiru $
+# $Id: PKGBUILD 145292 2011-12-21 10:20:13Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
pkgname=xulrunner
-pkgver=8.0
-_ffoxver=8.0
-pkgrel=2
+pkgver=9.0
+pkgrel=1
pkgdesc="Mozilla Runtime Environment"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
-depends=('gtk2' 'gcc-libs' 'libidl2' 'mozilla-common' 'nss' 'libxt' 'libxrender' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'libevent' 'sqlite3>=3.7.4' 'libnotify' 'libvpx')
-makedepends=('zip' 'unzip' 'pkg-config' 'diffutils' 'python2' 'wireless_tools' 'yasm' 'mesa')
+depends=('gtk2' 'mozilla-common' 'nss>=3.13.1' 'libxt' 'libxrender' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'libevent' 'sqlite3>=3.7.4' 'libnotify' 'libvpx' 'python2')
+makedepends=('zip' 'unzip' 'pkg-config' 'diffutils' 'wireless_tools' 'yasm' 'mesa')
url="http://wiki.mozilla.org/XUL:Xul_Runner"
-source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${_ffoxver}/source/firefox-${_ffoxver}.source.tar.bz2
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//$pkgver/source/firefox-$pkgver.source.tar.bz2
mozconfig
mozilla-pkgconfig.patch)
options=('!emptydirs')
replaces=('xulrunner-oss')
-md5sums=('9395a5be13da119bd8d53c3225e5d17c'
+md5sums=('d8d0c8c79660752b02d9e9ab69a68f94'
'8dfb78c5bd0581c8cf4753813132bf0b'
- '639ea80e823543dd415b90c0ee804186')
+ '27271ce647a83906ef7a24605e840d61')
build() {
cd "$srcdir/mozilla-release"
@@ -27,7 +26,8 @@ build() {
#fix libdir/sdkdir - fedora
patch -Np1 -i "$srcdir/mozilla-pkgconfig.patch"
- export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/xulrunner"
+ export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/xulrunner-$pkgver"
+ export PYTHON="/usr/bin/python2"
make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS"
}
@@ -36,10 +36,17 @@ package() {
cd "$srcdir/mozilla-release"
make -j1 -f client.mk DESTDIR="$pkgdir" install
+ rm -rf "$pkgdir"/usr/lib/xulrunner-$pkgver/{dictionaries,hyphenation}
+ ln -sf /usr/share/hunspell "$pkgdir/usr/lib/xulrunner-$pkgver/dictionaries"
+ ln -sf /usr/share/hyphen "$pkgdir/usr/lib/xulrunner-$pkgver/hyphenation"
+
# add xulrunner library path to ld.so.conf
install -d $pkgdir/etc/ld.so.conf.d
echo "/usr/lib/xulrunner-$pkgver" > $pkgdir/etc/ld.so.conf.d/xulrunner.conf
chmod +x "${pkgdir}/usr/lib/xulrunner-devel-$pkgver/sdk/bin/xpt.py"
sed -i 's|!/usr/bin/env python|!/usr/bin/env python2|' "$pkgdir/usr/lib/xulrunner-devel-$pkgver/sdk/bin/xpt.py"
+ sed -i 's|!/usr/bin/env python|!/usr/bin/env python2|' "$pkgdir/usr/lib/xulrunner-devel-$pkgver/sdk/bin/header.py"
+ sed -i 's|!/usr/bin/env python|!/usr/bin/env python2|' "$pkgdir/usr/lib/xulrunner-devel-$pkgver/sdk/bin/typelib.py"
+ sed -i 's|!/usr/bin/env python|!/usr/bin/env python2|' "$pkgdir/usr/lib/xulrunner-devel-$pkgver/sdk/bin/xpidl.py"
}