updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-javascript / PKGBUILD
blob342085c924a82e101ef417bf54520efc4b847c01
1 # Maintainer: Simon Perry <pezz [swirly thing] sanxion [dot] net>
2 # Contributor: Jakob Nixdorf <flocke [swirly thing] shadowice [dot] org>
4 pkgname=perl-javascript
5 pkgver=1.16
6 pkgrel=6
7 pkgdesc="Perl extension for executing embedded JavaScript"
8 depends=('glibc' 'perl>=5.10.0' 'perl-test-exception' 'spidermonkey-1.7' 'nspr' 'xulrunner')
9 license=('GPL' 'PerlArtistic')
10 url="http://search.cpan.org/dist/JavaScript/"
11 source=(http://search.cpan.org/CPAN/authors/id/C/CL/CLAESJAC/JavaScript-$pkgver.tar.gz)
12 options=('!emptydirs')
13 arch=(i686 x86_64)
15 build()
17     cd ${srcdir}/JavaScript-$pkgver
19     # Hack to pass the correct includes to the script
20     export JS_THREADSAFE=1 JS_ENABLE_E4X=1 JS_UTF8=1 JS_FORCE=1 JS_INC="/usr/include/spidermonkey-1.7/ -I/usr/include/nspr/ -I/usr/include/xulrunner-9.0.1/"
21     export CCFLAGS="gcc"
23     perl Makefile.PL INSTALLDIRS=vendor || return 1
24     make || return 1
25     make DESTDIR=${pkgdir} install || return 1
26   
27     # Remove .packlist and perllocal.pod files.
28     find ${pkgdir} -name '.packlist' -delete
29     find ${pkgdir} -name 'perllocal.pod' -delete
32 md5sums=('c3c4a744e0a5018b94f53341baa18df7')