summaryrefslogtreecommitdiff
path: root/extra/js/PKGBUILD
blob: 98c2e71ed25f734748f92a1f1a240e0afc26a555 (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
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 183636 2013-04-25 18:14:18Z ioni $
# Maintainer: Ionut Biru <ibiru@archlinux.org>

pkgname=js
pkgver=17.0.0
pkgrel=1
pkgdesc="JavaScript interpreter and libraries"
arch=(i686 x86_64)
url="https://developer.mozilla.org/En/SpiderMonkey/17"
license=(MPL)
depends=(nspr gcc-libs libffi readline)
makedepends=(python2 zip)
options=(!staticlibs)
source=(http://ftp.mozilla.org/pub/mozilla.org/js/mozjs$pkgver.tar.gz)
md5sums=('20b6f8f1140ef6e47daa3b16965c9202')

build() {
  unset CPPFLAGS
  cd mozjs$pkgver/js/src
  ./configure --prefix=/usr --with-system-nspr --with-system-ffi \
     --enable-readline --enable-threadsafe
  make
}

check() {
  cd mozjs$pkgver/js/src
  make check
}

package() {
  cd mozjs$pkgver/js/src
  make DESTDIR="$pkgdir" install
  find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
}

# vim:set ts=2 sw=2 et: