blob: 55e2fa83d56b1c07b9ceeb3308307a403db842b6 (
plain)
1 # Description: Javascript engine library
2 # URL: http://www.mozilla.org/js/spidermonkey/
3 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Depends on: python zip
5
6 name=spidermonkey
7 version=1.8.5
8 release=2
9 source=(http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz js-1.8.5-c++11.patch)
10
11 build() {
12 cd js-$version/js/src
13
14 # Fix build with gcc-6
15 # https://bugs.gentoo.org/show_bug.cgi?id=582478
16 patch -p3 -i $SRC/js-1.8.5-c++11.patch
17
18 ./configure \
19 --prefix=/usr
20
21 make
22 make DESTDIR=$PKG install
23
24 # symlinks are not relative, fix that
25 rm -f $PKG/usr/lib/libmozjs185.so{,.1.0}
26 ln -s libmozjs185.so.1.0.0 $PKG/usr/lib/libmozjs185.so
27 ln -s libmozjs185.so.1.0.0 $PKG/usr/lib/libmozjs185.so.1.0
28 }
|