summaryrefslogtreecommitdiffstats
path: root/abs/extra/community
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-03 20:50:44 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-03 20:50:44 (GMT)
commit1b9e65f20bdc2e7445a016865c2542ebe7e74eff (patch)
treec3188e81f3ea20ea450f32a4df09d3d9dfabde61 /abs/extra/community
parent335c95d040f49b0bca473fd03e4f91340f1966ff (diff)
downloadlinhes_pkgbuild-1b9e65f20bdc2e7445a016865c2542ebe7e74eff.zip
linhes_pkgbuild-1b9e65f20bdc2e7445a016865c2542ebe7e74eff.tar.gz
linhes_pkgbuild-1b9e65f20bdc2e7445a016865c2542ebe7e74eff.tar.bz2
js: initial include as dep of gpac. Replaces spidermonkey.
Diffstat (limited to 'abs/extra/community')
-rw-r--r--abs/extra/community/js/PKGBUILD39
l---------abs/extra/community/js/js-1.8.5-3.src.tar.gz1
-rw-r--r--abs/extra/community/js/js185-destdir.patch15
3 files changed, 55 insertions, 0 deletions
diff --git a/abs/extra/community/js/PKGBUILD b/abs/extra/community/js/PKGBUILD
new file mode 100644
index 0000000..35db2db
--- /dev/null
+++ b/abs/extra/community/js/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+pkgname=js
+pkgver=1.8.5
+pkgrel=3
+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/abs/extra/community/js/js-1.8.5-3.src.tar.gz b/abs/extra/community/js/js-1.8.5-3.src.tar.gz
new file mode 120000
index 0000000..c86d2e3
--- /dev/null
+++ b/abs/extra/community/js/js-1.8.5-3.src.tar.gz
@@ -0,0 +1 @@
+/data/pkg_repo/packages/js-1.8.5-3.src.tar.gz \ No newline at end of file
diff --git a/abs/extra/community/js/js185-destdir.patch b/abs/extra/community/js/js185-destdir.patch
new file mode 100644
index 0000000..87b7b53
--- /dev/null
+++ b/abs/extra/community/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))