sbcl rebuild
[arch-packages.git] / js60 / trunk / PKGBUILD
bloba49b1c3fb179f43d020bdeb0b7866e39e859d020
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
3 pkgname=js60
4 pkgver=60.9.0
5 pkgrel=2
6 pkgdesc="JavaScript interpreter and libraries - Version 60"
7 arch=(x86_64)
8 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
9 license=(MPL)
10 depends=(gcc-libs readline zlib sh)
11 makedepends=(python2 zip autoconf2.13)
12 _relver=${pkgver}esr
13 source=(https://archive.mozilla.org/pub/firefox/releases/$_relver/source/firefox-$_relver.source.tar.xz{,.asc}
14         bug1415202.patch)
15 sha256sums=('9f453c8cc5669e46e38f977764d49a36295bf0d023619d9aac782e6bb3e8c53f'
16             'SKIP'
17             '0b410aa6ebd0236cd3ea524340c2da2235973a42cd0eaa90f7f394cd5bcbab95')
18 validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases <release@mozilla.com>
20 # Make sure the duplication between bin and lib is found
21 COMPRESSZST+=(--long)
23 prepare() {
24   cd firefox-$pkgver
25   mkdir obj
27   # https://bugzilla.mozilla.org/show_bug.cgi?id=1479687
28   patch -Np1 -i ../bug1415202.patch
31 build() {
32   local configure_args=(
33     --prefix=/usr
34     --disable-debug
35     --disable-debug-symbols
36     --disable-jemalloc
37     --disable-strip
38     --enable-hardening
39     --enable-linker=gold
40     --enable-optimize
41     --enable-posix-nspr-emulation
42     --enable-readline
43     --enable-release
44     --enable-shared-js
45     --enable-tests
46     --with-intl-api
47     --with-system-zlib
48     --without-system-icu
49   )
51   cd firefox-$pkgver/obj
53   sh ../js/src/configure "${configure_args[@]}"
54   make
57 check() {
58   local jstests_extra_args=(
59     --format=none
60     --exclude-random
61   ) jittest_extra_args=(
62     --format=none
63     --timeout 300
64   ) jittest_test_args=(
65     basic
66   )
68   cd firefox-$pkgver/obj
69   make -C js/src check-jstests check-jit-test \
70     JSTESTS_EXTRA_ARGS="${jstests_extra_args[*]}" \
71     JITTEST_EXTRA_ARGS="${jittest_extra_args[*]}" \
72     JITTEST_TEST_ARGS="${jittest_test_args[*]}"
75 package() {
76   cd firefox-$pkgver/obj
77   make DESTDIR="$pkgdir" install
78   rm "$pkgdir"/usr/lib/*.ajs
79   find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -c a-x {} +
82 # vim:set ts=2 sw=2 et: