mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 20:54:42 +08:00
83 lines
3.1 KiB
Bash
83 lines
3.1 KiB
Bash
# $Id: PKGBUILD 75703 2010-04-02 19:16:36Z ibiru $
|
|
# Contributor: Alexander Baldeck <alexander@archlinux.org>
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
pkgname=xulrunner
|
|
pkgver=1.9.2.13
|
|
_ffoxver=3.6.13
|
|
pkgrel=1
|
|
pkgdesc="Mozilla Runtime Environment"
|
|
arch=(i686 x86_64)
|
|
license=('MPL' 'GPL' 'LGPL')
|
|
depends=('gtk2>=2.20.0' 'gcc-libs>=4.4.3' 'libidl2>=0.8.13' 'mozilla-common' 'nss>=3.12.6' 'libxt' 'hunspell>=1.2.8' 'startup-notification>=0.10' 'mime-types' 'dbus-glib>=0.82' 'alsa-lib>=1.0.21.a')
|
|
makedepends=('zip' 'pkgconfig' 'diffutils' 'python' 'wireless_tools' 'autoconf2.13')
|
|
optdepends=('wireless_tools: Location aware browsing'
|
|
'python: pyxpcom')
|
|
provides=(gecko-sdk)
|
|
replaces=(gecko-sdk)
|
|
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
|
|
mozconfig
|
|
mozilla-pkgconfig.patch
|
|
fix-mozilla-launcher.patch
|
|
# mozilla-ps-pdf-simplify-operators.patch
|
|
xulrunner-version.patch
|
|
xulrunner-png14.patch
|
|
enable-x86_64-tracemonkey.patch
|
|
startup-notification.patch
|
|
python2.7.patch)
|
|
md5sums=('d7c90aed8209beefa74badf02e8eeae1'
|
|
'3b1ed7b2899189e2c8fc9a82d95209bf'
|
|
'd839d1c4ef736e6d89ccf91b23b965a4'
|
|
'63eee2d1da3b43c9d604f2253f242f40'
|
|
# '13dca58c04e62a8916691c63c5c492a0'
|
|
'371303c5bdc4fa0d955d14521b93b69d'
|
|
'3bd0566180ad2daa32743b3ce58b2095'
|
|
'cbd938cd1fb8210cd8a2c41833489af9'
|
|
'5876c45f85dc3d8989a9d2d098dc9f15'
|
|
'ab3dc9aecae7f08b9492fb3c00a5fd28')
|
|
|
|
build() {
|
|
cd "${srcdir}/mozilla-1.9.2"
|
|
cp "${srcdir}/mozconfig" .mozconfig
|
|
|
|
#Upstream patch. Still not applied to 1.9.2
|
|
patch -Np1 -i "${srcdir}/mozilla-ps-pdf-simplify-operators.patch" || return 1
|
|
|
|
#fix libdir/sdkdir - fedora
|
|
patch -Np1 -i "${srcdir}/mozilla-pkgconfig.patch" || return 1
|
|
|
|
#Fix stub launcher - archlinux
|
|
patch -Np0 -i "${srcdir}/fix-mozilla-launcher.patch" || return 1
|
|
|
|
#Force installation to the same path for every version
|
|
patch -Np1 -i "${srcdir}/xulrunner-version.patch" || return 1
|
|
|
|
#Fix compile with libpng 1.4
|
|
patch -Np0 -i "${srcdir}/xulrunner-png14.patch" || return 1
|
|
|
|
#Tracemonkey for x86_64
|
|
patch -Np0 -i "${srcdir}/enable-x86_64-tracemonkey.patch" || return 1
|
|
|
|
#python2.7
|
|
patch -Np0 -i "${srcdir}/python2.7.patch"
|
|
|
|
#https://bug534845.bugzilla.mozilla.org/attachment.cgi?id=417666
|
|
#https://bugzilla.mozilla.org/show_bug.cgi?id=534845
|
|
patch -Np1 -i "${srcdir}/startup-notification.patch" || return 1
|
|
|
|
unset CFLAGS
|
|
unset CXXFLAGS
|
|
|
|
make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1
|
|
make -j1 DESTDIR="${pkgdir}" install || return 1
|
|
|
|
#Remove included dictionaries, add symlink to system myspell path.
|
|
#Note: this will cause file conflicts when users have installed dictionaries in the old location
|
|
rm -rf "${pkgdir}/usr/lib/xulrunner-1.9.2/dictionaries"
|
|
ln -sf /usr/share/myspell "${pkgdir}/usr/lib/xulrunner-1.9.2/dictionaries"
|
|
|
|
# add xulrunner library path to ld.so.conf
|
|
install -d ${pkgdir}/etc/ld.so.conf.d
|
|
echo "/usr/lib/xulrunner-1.9.2" > ${pkgdir}/etc/ld.so.conf.d/xulrunner.conf
|
|
}
|