PKGBUILDs/extra/js/PKGBUILD

53 lines
1.2 KiB
Bash
Raw Normal View History

2015-07-11 05:07:47 +00:00
# $Id$
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch for AArch64
2015-07-11 18:53:47 +00:00
# - patch for perl 5.22 deprecation
2015-07-11 05:07:47 +00:00
pkgname=js
pkgver=24.2.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 readline zlib)
makedepends=(python2 zip libffi)
options=(!staticlibs)
source=(http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$pkgver.tar.bz2
2015-07-11 18:53:47 +00:00
aarch64.patch
perl522.patch)
2015-07-11 05:07:47 +00:00
md5sums=('5db79c10e049a2dc117a6e6a3bc78a8e'
2015-07-11 18:53:47 +00:00
'144736bd4a4825ba5a1c87439230964d'
'84903b1c3fcef04cbb7b0c9fa2143e43')
2015-07-11 05:07:47 +00:00
prepare() {
rm -rf mozjs-$pkgver/js/src/editline
rm -rf mozjs-$pkgver/js/src/ctypes/libffi
cd mozjs-$pkgver
2015-07-11 18:53:47 +00:00
patch -p1 -i ../aarch64.patch
patch -p1 -i ../perl522.patch
2015-07-11 05:07:47 +00:00
}
build() {
unset CPPFLAGS
cd mozjs-$pkgver/js/src
./configure --prefix=/usr --with-system-nspr --enable-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: