db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / js38 / trunk / PKGBUILD
blob797deff8421000984c8fd99866e97d7730dbe9b5
1 # Maintainer: Ionut Biru <ibiru@archlinux.org>
3 pkgname=js38
4 pkgver=38.8.0
5 pkgrel=5
6 pkgdesc="JavaScript interpreter and libraries - Version 38"
7 arch=(x86_64)
8 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38"
9 license=(MPL)
10 depends=(nspr gcc-libs readline zlib icu libffi)
11 makedepends=(python2 libffi zip)
12 options=(!staticlibs)
13 source=(https://ftp.mozilla.org/pub/firefox/releases/${pkgver}esr/source/firefox-${pkgver}esr.source.tar.bz2
14         mozjs38-fix-tracelogger.patch
15         mozjs38-shell-version.patch
16         mozjs38-pkg-config-version.patch
17         mozjs38-install-name.patch
18         mozjs38-copy-headers.patch
19         mozjs38-add-bracket.patch
20         mozjs38-1269317.patch)
21 sha256sums=('9475adcee29d590383c4885bc5f958093791d1db4302d694a5d2766698f59982'
22             '55e656c41583cd4e5468cb4b93c0f57f40f2817adcc1acf9333b4b248969983d'
23             '16b00caf68c23d7b484b42b523ca49465853fee5161b34520cb93fc89bf16903'
24             'fcdc86524d3abb89244310bded9e994833b1ecad2cb181821cbb523e2c1b567a'
25             '56d1336f0bfa9b1d1a19313f3cdece317bf6a169c7369ecdc068e7ab99d16d9e'
26             'd052a19e7d33023e927c83fda5dcf7a90127934df034969011960b3b8e6930ed'
27             '3d3a53949da5d1da201548d9de41c99c1ff6d52e1ac7bc047e2c96e6c5f9e3a7'
28             'e34338b3bfb1a16c3f98b73007b914560085d54ba94d56cb1b8586330cbef506')
30 prepare() {
31   cd mozilla-esr38
33   patch -Np1 -i ../mozjs38-fix-tracelogger.patch
34   patch -Np1 -i ../mozjs38-shell-version.patch
35   patch -Np1 -i ../mozjs38-pkg-config-version.patch
36   patch -Np1 -i ../mozjs38-install-name.patch
37   patch -Np1 -i ../mozjs38-copy-headers.patch
38   patch -Np1 -i ../mozjs38-add-bracket.patch
39   patch -Np1 -i ../mozjs38-1269317.patch
42 build() {
43   unset CPPFLAGS
44   CXXFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing'
45   CFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing'
46   export PYTHON=/usr/bin/python2
47   cd mozilla-esr38/js/src
48   ./configure --prefix=/usr --with-system-nspr --enable-system-ffi \
49     --with-system-zlib --with-system-icu --with-intl-api --enable-ctypes \
50     --enable-threadsafe --enable-system-ffi --enable-shared-js --enable-gcgenerational --disable-optimize --enable-pie
51   make
54 check() {
55   cd mozilla-esr38/js/src
56   # Disabled: test suite fails because it is broken.
57   #make -j1 check
60 package() {
61   cd mozilla-esr38/js/src
62   make DESTDIR="$pkgdir" install
63   rm "$pkgdir"/usr/lib/*.ajs
64   find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
67 # vim:set ts=2 sw=2 et: