Skip to content

Instantly share code, notes, and snippets.

@bcarlin
Created December 16, 2011 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcarlin/1486851 to your computer and use it in GitHub Desktop.
Save bcarlin/1486851 to your computer and use it in GitHub Desktop.
PKGBUILD for xulrunner192-1.9.2.24
# $Id: PKGBUILD 112304 2011-03-04 19:29:22Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
pkgname=xulrunner192
pkgver=1.9.2.24
_ffoxver=3.6.24
pkgrel=1
pkgdesc="Mozilla Runtime Environment"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
depends=('gtk2' 'gcc-libs' 'libidl2' 'mozilla-common' 'nss' 'libxt' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'libevent' 'sqlite3>=3.7.4')
makedepends=('zip' 'pkg-config' 'diffutils' 'libgnomeui' 'python2' 'wireless_tools' 'autoconf2.13')
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
xulrunner-version.patch
xulrunner-png14.patch
enable-x86_64-tracemonkey.patch
offsetof.patch
python2.7.patch)
md5sums=('28e37363782c47b4718d82ce5a699c14'
'1c5fdebaee7b96308e17d478fbdb3ac3'
'd839d1c4ef736e6d89ccf91b23b965a4'
'63eee2d1da3b43c9d604f2253f242f40'
'371303c5bdc4fa0d955d14521b93b69d'
'3bd0566180ad2daa32743b3ce58b2095'
'cbd938cd1fb8210cd8a2c41833489af9'
'c39773f884c79773db10a1216722441e'
'ab3dc9aecae7f08b9492fb3c00a5fd28')
build() {
cd "${srcdir}/mozilla-1.9.2"
cp "${srcdir}/mozconfig" .mozconfig
patch -Np1 -i "${srcdir}/offsetof.patch"
#fix libdir/sdkdir - fedora
patch -Np1 -i "${srcdir}/mozilla-pkgconfig.patch"
#Fix stub launcher - archlinux
patch -Np0 -i "${srcdir}/fix-mozilla-launcher.patch"
#Force installation to the same path for every version
patch -Np1 -i "${srcdir}/xulrunner-version.patch"
#Fix compile with libpng 1.4
patch -Np0 -i "${srcdir}/xulrunner-png14.patch"
#Tracemonkey for x86_64
patch -Np0 -i "${srcdir}/enable-x86_64-tracemonkey.patch"
#python2.7
patch -Np0 -i "${srcdir}/python2.7.patch"
unset CFLAGS
unset CXXFLAGS
make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS"
}
package() {
cd "${srcdir}/mozilla-1.9.2"
make -j1 DESTDIR="${pkgdir}" install
#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/dicts "${pkgdir}/usr/lib/xulrunner-1.9.2/dictionaries"
rm -f "${pkgdir}/usr/bin/xulrunner"
rm -rf "${pkgdir}/usr/lib/pkgconfig"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment