firefox: set HOME=/tmp to make xpcshell work at install time.

This commit is contained in:
Juan RP 2013-11-01 11:53:59 +01:00
parent 9f6ffc8cb1
commit 4acaa8124c
1 changed files with 6 additions and 4 deletions

View File

@ -22,20 +22,22 @@ makedepends="libjpeg-turbo-devel libpng-devel>=1.6 gst-plugins-base-devel
# Note: This is for Void Linux use ONLY.
_google_api_key="AIzaSyCIFdBA7eQP43R6kXRwTq7j6Mvj1ITze90"
do_build() {
pre_build() {
echo -n "$_google_api_key" >google-api-key
echo "ac_add_options --with-google-api-keyfile=\"${wrksrc}/google-api-key\"" >>.mozconfig
# Fix PRE_RELEASE_SUFFIX
sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' browser/base/Makefile.in
cp -f ${FILESDIR}/mozconfig .mozconfig
export LDFLAGS="$LDFLAGS -Wl,-R/usr/lib/firefox"
}
SHELL=/bin/bash make ${makejobs} -f client.mk MOZ_MAKE_FLAGS="${makejobs}"
do_build() {
export LDFLAGS+=" -Wl,-R/usr/lib/firefox"
SHELL=/bin/bash make -f client.mk MOZ_MAKE_FLAGS="${makejobs}"
}
do_install() {
make -f client.mk DESTDIR=${DESTDIR} install
HOME=/tmp make -f client.mk DESTDIR=${DESTDIR} install
vinstall ${FILESDIR}/vendor.js 644 usr/lib/firefox/browser/defaults/preferences
vinstall ${FILESDIR}/firefox.desktop 644 usr/share/applications