mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
40 lines
969 B
Bash
40 lines
969 B
Bash
# $Id$
|
|
# Maintainer: Ionut Biru <ibiru@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - for those of us that build packages correctly, you actually need to unset the new CPPFLAGS
|
|
|
|
pkgname=js
|
|
pkgver=17.0.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 libffi readline)
|
|
makedepends=(python2 zip)
|
|
options=(!staticlibs)
|
|
source=(http://ftp.mozilla.org/pub/mozilla.org/js/mozjs$pkgver.tar.gz)
|
|
md5sums=('20b6f8f1140ef6e47daa3b16965c9202')
|
|
|
|
build() {
|
|
unset CPPFLAGS
|
|
|
|
cd mozjs$pkgver/js/src
|
|
./configure --prefix=/usr --with-system-nspr --with-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:
|