updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xulrunner-headless-hg / PKGBUILD
blob097dd0c8a9121f27b285e938a98b69153b8423e9
1 # Maintainer: Alex Anthony <alex.anthony28991@googlemail.com>
3 pkgname=xulrunner-headless-hg
4 pkgver=29672
5 pkgrel=1
6 pkgdesc="Xulrunner for headless, used for embedding"
7 arch=('i686' 'x86_64')
8 url="http://www.mozilla.org"
9 license=('GPL')
10 depends=('bzip2' 'cairo' 'alsa-lib' 'libxt' 'hunspell' 'nss' 'sqlite3' 'bash' 'nspr')
11 makedepends=('mercurial')
12 provides=()
13 conflicts=()
14 sources=('mozconfig'
15          'mozilla-headless.sh')
16 install=$pkgname.install
17 _hgroot="http://hg.mozilla.org/incubator/offscreen/headless"
18 _hgrepo=headless
21 build() {
22   rm -rf $srcdir/$_hgrepo-build
23   cd $srcdir
24   hg checkout $_hgrepo
25 #  cp -r $srcdir/$_hgrepo $srcdir/$_hgrepo-build 
26 #  cd $srcdir/$_hgrepo-build
27 #  cp $startdir/mozconfig $srcdir/$_hgrepo-build/.mozconfig
28   cd $srcdir/$_hgrepo
29   cp $startdir/mozconfig ./
30   cp $startdir/mozconfig ./.mozconfig
31   make -f client.mk configure || return 1
32   cd ../mozilla-build
33   make || 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/