2015-07-11 05:07:47 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Ionut Biru <ibiru@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2016-10-13 00:18:03 +00:00
|
|
|
# - patches for AArch64 from Fedora
|
2015-07-11 05:07:47 +00:00
|
|
|
|
|
|
|
pkgname=js
|
|
|
|
pkgver=24.2.0
|
2016-11-14 13:33:43 +00:00
|
|
|
pkgrel=4
|
2015-07-11 05:07:47 +00:00
|
|
|
pkgdesc="JavaScript interpreter and libraries"
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="https://developer.mozilla.org/En/SpiderMonkey/17"
|
|
|
|
license=(MPL)
|
|
|
|
depends=(nspr gcc-libs readline zlib)
|
|
|
|
makedepends=(python2 zip libffi)
|
|
|
|
options=(!staticlibs)
|
|
|
|
source=(http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$pkgver.tar.bz2
|
2016-10-13 00:18:03 +00:00
|
|
|
mozjs24-0001-Add-AArch64-support.patch
|
|
|
|
mozjs24-48-bit-VA-fix.patch)
|
2015-07-11 05:07:47 +00:00
|
|
|
md5sums=('5db79c10e049a2dc117a6e6a3bc78a8e'
|
2016-10-13 00:18:03 +00:00
|
|
|
'06eea5b38cf71b894a079a1c932e421b'
|
|
|
|
'82e9016bc35b745d56aec6dbea3ed520')
|
2015-07-11 05:07:47 +00:00
|
|
|
|
|
|
|
prepare() {
|
2015-12-10 05:35:39 +00:00
|
|
|
cd mozjs-$pkgver/js/src
|
|
|
|
|
|
|
|
rm -r editline
|
|
|
|
rm -r ctypes/libffi
|
|
|
|
|
|
|
|
# Fix incompatibility with Perl 5.22
|
|
|
|
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl
|
|
|
|
|
|
|
|
cd ../..
|
2016-10-13 00:18:03 +00:00
|
|
|
patch -p1 -i ../mozjs24-0001-Add-AArch64-support.patch
|
|
|
|
patch -p1 -i ../mozjs24-48-bit-VA-fix.patch
|
2015-07-11 05:07:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset CPPFLAGS
|
2016-11-14 13:33:43 +00:00
|
|
|
CXXFLAGS+=' -fno-delete-null-pointer-checks'
|
2015-07-11 05:07:47 +00:00
|
|
|
cd mozjs-$pkgver/js/src
|
|
|
|
./configure --prefix=/usr --with-system-nspr --enable-system-ffi \
|
|
|
|
--enable-readline --enable-threadsafe
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd mozjs-$pkgver/js/src
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd mozjs-$pkgver/js/src
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|