blob: dd4efd388e5ead6324d4dc6343e0263166bc48ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $Id: PKGBUILD 132237 2011-07-21 21:43:04Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=js
pkgver=1.8.5
pkgrel=3.1
pkgdesc="JavaScript interpreter and libraries"
arch=(i686 x86_64 'mips64el')
url="https://developer.mozilla.org/En/SpiderMonkey/1.8.5"
license=('GPL2')
depends=('nspr' 'gcc-libs')
makedepends=('python2' 'zip')
replaces=('spidermonkey')
conflicts=('spidermonkey')
source=(http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
js185-destdir.patch)
md5sums=('a4574365938222adca0a6bd33329cb32'
'364834a8391888642c53d78c3a949d94')
build() {
cd "$srcdir/$pkgname-$pkgver/js/src"
if [ "$CARCH" = "mips64el" ]; then
# Force disabling JIT.
sed -ri 's/#define ENABLE_(JIT|ASSEMBLER) 1/#define ENABLE_\1 0/' \
assembler/wtf/Platform.h
sed -ri 's/ENABLE_(JIT|ASSEMBLER)=1/ENABLE_\1=0/' Makefile.{in,ref}
extraconf="--disable-methodjit --disable-tracejit"
fi
patch -Np0 -i $srcdir/js185-destdir.patch
./configure --prefix=/usr --with-system-nspr \
--enable-threadsafe $extraconf
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/js/src"
make DESTDIR="$pkgdir" install
install -m 0755 shell/js ${pkgdir}/usr/bin
#cleanup
rm -f "${pkgdir}/usr/lib/libmozjs185-1.0.a"
}
# vim:set ts=2 sw=2 et:
|