summaryrefslogtreecommitdiffstats
path: root/js/Pkgfile
blob: 6f49d0a0b2a16d49eb4ecb5694ca0b6002a4b5f7 (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
# Description: Intepreteur et bibliothèques JavaScript
# URL: https://developer.mozilla.org/En/SpiderMonkey
# Maintainer: NutyX core team
# Packager: piernov <piernov@piernov.org>
# Depends on: nspr,python2,zip
# Run on: nspr,python2,zip

name=js
version=1.8.5
release=1

source=(http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
	js185-destdir.patch)

build() {
	cd $name-$version/js/src
	patch -p0 < $SRC/js185-destdir.patch
	 ./configure --prefix=/usr \
		--with-system-nspr \
		--enable-threadsafe
	make
	make DESTDIR=$PKG install
	install -m 0755 shell/js ${pkgdir}/usr/bin
}