Created
February 23, 2017 14:47
-
-
Save lubosz/40e1042803526745d811d5c7b9e5fd07 to your computer and use it in GitHub Desktop.
mozjs-31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 280669 2016-11-14 07:41:07Z bpiotrowski $ | |
# Maintainer: Ionut Biru <ibiru@archlinux.org> | |
pkgname=mozjs-31 | |
pkgver=31.5.0 | |
pkgrel=4 | |
pkgdesc="JavaScript interpreter and libraries" | |
arch=(i686 x86_64) | |
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/31" | |
license=(MPL) | |
depends=(nspr gcc-libs readline zlib) | |
makedepends=(python2 zip libffi) | |
options=(!staticlibs) | |
#source=(http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$pkgver.tar.bz2) | |
#source=(https://people.mozilla.org/~sstangl/mozjs-31.2.0.rc0.tar.bz2) | |
source=(https://people.mozilla.org/~sstangl/mozjs-31.5.0.tar.bz2) | |
md5sums=(SKIP) | |
#provides=(js=$pkgver) | |
#conflicts=(js spidermonkey) | |
#md5sums=('5db79c10e049a2dc117a6e6a3bc78a8e') | |
prepare() { | |
cd mozjs-$pkgver/js/src | |
echo `pwd` | |
rm -r editline | |
rm -r ctypes/libffi | |
cd $srcdir/mozjs-$pkgver/ | |
# Fix incompatibility with Perl 5.22 | |
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl | |
#patch -p1 < ../../fixicu.patch | |
} | |
build() { | |
unset CPPFLAGS | |
CXXFLAGS+=' -fno-delete-null-pointer-checks -fpermissive' | |
cd mozjs-$pkgver/js/src | |
sed -i "s/version=\`sed.*/version=56/g" configure | |
#autoreconf | |
./configure --prefix=/usr --with-system-nspr --enable-system-ffi \ | |
--enable-readline --enable-threadsafe | |
make | |
} | |
#check() { | |
# cd mozjs-$pkgver/js/src | |
# export PYTHON=python2 | |
# make check | |
#} | |
package() { | |
cd mozjs-$pkgver/js/src | |
make DESTDIR="$pkgdir" install | |
find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} + | |
cp dist/include/js-config.h $pkgdir/usr/include/mozjs-31 | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment