archrelease: copy trunk to extra-x86_64
[arch-packages.git] / js68 / trunk / PKGBUILD
blob33b0ff1407b2a8855b6c362c3af12f266a62cab6
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=js68
4 pkgver=68.12.0
5 pkgrel=1
6 pkgdesc="JavaScript interpreter and libraries - Version 68"
7 arch=(x86_64)
8 url="https://spidermonkey.dev/"
9 license=(MPL)
10 depends=(gcc-libs readline zlib sh)
11 makedepends=(python2 zip autoconf2.13 python rust llvm clang)
12 checkdepends=(mercurial git)
13 _relver=${pkgver}esr
14 source=(https://archive.mozilla.org/pub/firefox/releases/$_relver/source/firefox-$_relver.source.tar.xz{,.asc})
15 sha256sums=('ae692bf2a15908cacbb9d4c7ccf78525a87410ff3f13befedc1926f849bc27cc'
16             'SKIP')
17 validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases <release@mozilla.com>
19 # Make sure the duplication between bin and lib is found
20 COMPRESSZST+=(--long)
22 prepare() {
23   cd firefox-$pkgver
24   mkdir obj
27 build() {
28   local configure_args=(
29     --prefix=/usr
30     --disable-debug
31     --disable-debug-symbols
32     --disable-jemalloc
33     --disable-strip
34     --enable-hardening
35     --enable-lto
36     --enable-optimize
37     --enable-posix-nspr-emulation
38     --enable-readline
39     --enable-release
40     --enable-shared-js
41     --enable-tests
42     --enable-unaligned-private-values
43     --with-intl-api
44     --with-system-zlib
45     --without-system-icu
46   )
48   export AR=llvm-ar
49   export NM=llvm-nm
50   export RANLIB=llvm-ranlib
52   cd firefox-$pkgver/obj
54   sh ../js/src/configure "${configure_args[@]}"
55   make
58 check() {
59   local jstests_extra_args=(
60     --format=none
61     --exclude-random
62   ) jittest_extra_args=(
63     --format=none
64     --timeout 300
65   ) jittest_test_args=(
66     basic
67   )
69   cd firefox-$pkgver/obj
70   make -C js/src check-jstests check-jit-test \
71     JSTESTS_EXTRA_ARGS="${jstests_extra_args[*]}" \
72     JITTEST_EXTRA_ARGS="${jittest_extra_args[*]}" \
73     JITTEST_TEST_ARGS="${jittest_test_args[*]}"
76 package() {
77   cd firefox-$pkgver/obj
78   make DESTDIR="$pkgdir" install
79   rm "$pkgdir"/usr/lib/*.ajs
80   find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -c a-x {} +
83 # vim:set ts=2 sw=2 et: