archrelease: copy trunk to extra-x86_64
[arch-packages.git] / js / trunk / PKGBUILD
blob4de3c5b3b24966aaedb5e4359776ae19b25a02e2
1 # Maintainer: Ionut Biru <ibiru@archlinux.org>
3 pkgname=js
4 pkgver=24.2.0
5 pkgrel=4
6 pkgdesc="JavaScript interpreter and libraries"
7 arch=(x86_64)
8 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/24"
9 license=(MPL)
10 depends=(nspr gcc-libs readline zlib)
11 makedepends=(python2 zip libffi)
12 options=(!staticlibs)
13 source=(http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$pkgver.tar.bz2)
14 md5sums=('5db79c10e049a2dc117a6e6a3bc78a8e')
16 prepare() {
17   cd mozjs-$pkgver/js/src
19   rm -r editline
20   rm -r ctypes/libffi
22   # Fix incompatibility with Perl 5.22
23   sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl
26 build() {
27   unset CPPFLAGS
28   CXXFLAGS+=' -fno-delete-null-pointer-checks'
29   cd mozjs-$pkgver/js/src
30   ./configure --prefix=/usr --with-system-nspr --enable-system-ffi \
31      --enable-readline --enable-threadsafe
32   make
35 check() {
36   cd mozjs-$pkgver/js/src
37   make check
40 package() {
41   cd mozjs-$pkgver/js/src
42   make DESTDIR="$pkgdir" install
43   find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
46 # vim:set ts=2 sw=2 et: