1 # Maintainer: Simon Perry <pezz [swirly thing] sanxion [dot] net>
2 # Contributor: Jakob Nixdorf <flocke [swirly thing] shadowice [dot] org>
4 pkgname=perl-javascript
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')
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/"
23 perl Makefile.PL INSTALLDIRS=vendor || return 1
25 make DESTDIR=${pkgdir} install || return 1
27 # Remove .packlist and perllocal.pod files.
28 find ${pkgdir} -name '.packlist' -delete
29 find ${pkgdir} -name 'perllocal.pod' -delete
32 md5sums=('c3c4a744e0a5018b94f53341baa18df7')