1 # Maintainer: Alex Anthony <alex.anthony28991@googlemail.com>
3 pkgname=xulrunner-headless-hg
6 pkgdesc="Xulrunner for headless, used for embedding"
8 url="http://www.mozilla.org"
10 depends=('bzip2' 'cairo' 'alsa-lib' 'libxt' 'hunspell' 'nss' 'sqlite3' 'bash' 'nspr')
11 makedepends=('mercurial')
15 'mozilla-headless.sh')
16 install=$pkgname.install
17 _hgroot="http://hg.mozilla.org/incubator/offscreen/headless"
22 rm -rf $srcdir/$_hgrepo-build
25 # cp -r $srcdir/$_hgrepo $srcdir/$_hgrepo-build
26 # cd $srcdir/$_hgrepo-build
27 # cp $startdir/mozconfig $srcdir/$_hgrepo-build/.mozconfig
29 cp $startdir/mozconfig ./
30 cp $startdir/mozconfig ./.mozconfig
31 make -f client.mk configure || return 1
34 mkdir -p $pkgdir/opt/mozilla-headless
35 make SKIP_GRE_REGISTRATION=1 DESTDIR=${pkgdir} install || return 1
36 mkdir -p $pkgdir/etc/profile.d
37 mkdir -p $pkgdir/usr/lib/pkgconfig
38 install -m755 $startdir/mozilla-headless.sh $pkgdir/etc/prodile.d/mozilla-headless.sh
39 cp $pkgdir/opt/mozilla-headless/lib/pkgconfig/* $pkgdir/usr/lib/pkgconfig/