summaryrefslogtreecommitdiff
path: root/community/js185
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/js185
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/js185')
-rw-r--r--community/js185/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/js185/PKGBUILD b/community/js185/PKGBUILD
new file mode 100644
index 000000000..3da079149
--- /dev/null
+++ b/community/js185/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 101265 2013-11-21 12:14:23Z bpiotrowski $
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+
+pkgname=js185
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="JavaScript interpreter and libraries (legacy)"
+arch=(i686 x86_64)
+url="https://developer.mozilla.org/En/SpiderMonkey/1.8.5"
+license=(MPL)
+depends=(nspr gcc-libs)
+makedepends=(python2 zip)
+options=(!staticlibs)
+source=(http://ftp.mozilla.org/pub/mozilla.org/js/$pkgname-$pkgver.tar.gz)
+md5sums=('a4574365938222adca0a6bd33329cb32')
+
+build() {
+ cd js-1.8.5/js/src
+
+ # _FORTIFY_SOURCE causes configure error
+ unset CPPFLAGS
+
+ ./configure --prefix=/usr --with-system-nspr \
+ --enable-threadsafe
+ make
+}
+
+package() {
+ cd js-1.8.5/js/src
+ make DESTDIR="$pkgdir" install
+ install -Dm755 shell/js "$pkgdir/usr/bin/js"
+ find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
+
+ # Bad symlinks (absolute, including DESTDIR!)
+ cd "$pkgdir/usr/lib"
+ ln -sf libmozjs185.so.1.0.0 libmozjs185.so.1.0
+ ln -sf libmozjs185.so.1.0 libmozjs185.so
+}
+
+# vim:set ts=2 sw=2 et: