opt/spidermonkey/Pkgfile

25 lines
582 B
Plaintext
Raw Normal View History

2013-09-28 01:23:23 +02:00
# Description: Javascript engine library
# URL: http://www.mozilla.org/js/spidermonkey/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
2014-02-26 02:07:14 +01:00
# Depends on: python
2013-09-28 01:23:23 +02:00
name=spidermonkey
version=1.8.5
2013-09-29 11:21:48 +02:00
release=2
2013-09-28 01:23:23 +02:00
source=(http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz)
build() {
cd js-$version/js/src
./configure \
2013-09-29 11:21:48 +02:00
--prefix=/usr
2013-09-28 01:23:23 +02:00
make
make DESTDIR=$PKG install
# symlinks are not relative, fix that
rm -f $PKG/usr/lib/libmozjs185.so{,.1.0}
ln -s libmozjs185.so.1.0.0 $PKG/usr/lib/libmozjs185.so
ln -s libmozjs185.so.1.0.0 $PKG/usr/lib/libmozjs185.so.1.0
}