summaryrefslogtreecommitdiff
path: root/extra/js
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-12 14:14:44 +0000
committerroot <root@rshg047.dnsready.net>2011-07-12 14:14:44 +0000
commitec9bd2e246eb94181a9254dcb2de7ddc191bb8cc (patch)
tree2f7af52e79332c2dc24b2c28ac3fceb0cbda7f10 /extra/js
parente03f4b9bc9da3327de94bc58aa92ecb836c1580d (diff)
Tue Jul 12 14:14:44 UTC 2011
Diffstat (limited to 'extra/js')
-rw-r--r--extra/js/PKGBUILD37
-rw-r--r--extra/js/js185-destdir.patch15
2 files changed, 52 insertions, 0 deletions
diff --git a/extra/js/PKGBUILD b/extra/js/PKGBUILD
new file mode 100644
index 000000000..97b384792
--- /dev/null
+++ b/extra/js/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 130213 2011-07-04 12:50:49Z ibiru $
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+pkgname=js
+pkgver=1.8.5
+pkgrel=1
+pkgdesc="JavaScript interpreter and libraries"
+arch=(i686 x86_64)
+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"
+ patch -Np0 -i $srcdir/js185-destdir.patch
+ ./configure --prefix=/usr --with-system-nspr \
+ --enable-threadsafe
+
+ 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:
diff --git a/extra/js/js185-destdir.patch b/extra/js/js185-destdir.patch
new file mode 100644
index 000000000..87b7b53b3
--- /dev/null
+++ b/extra/js/js185-destdir.patch
@@ -0,0 +1,15 @@
+#https://bugzilla.mozilla.org/show_bug.cgi?id=628723
+
+--- Makefile.in.old 2011-04-10 04:21:19.918608008 -0700
++++ Makefile.in 2011-04-10 04:21:58.088607992 -0700
+@@ -888,8 +888,8 @@
+ ifeq (,$(HOST_BIN_SUFFIX))
+ mv -f $(SHLIB_ANY_VER) $(SHLIB_EXACT_VER)
+ @[ ! -h $(SHLIB_ABI_VER) ] || rm -f $(SHLIB_ABI_VER)
+- ln -s $(SHLIB_EXACT_VER) $(SHLIB_ABI_VER)
+- ln -s $(SHLIB_ABI_VER) $(SHLIB_ANY_VER)
++ ln -s $(notdir $(SHLIB_EXACT_VER)) $(SHLIB_ABI_VER)
++ ln -s $(notdir $(SHLIB_ABI_VER)) $(SHLIB_ANY_VER)
+ endif
+ endif
+ ifneq (,$(IMPORT_LIBRARY))