PKGBUILDs/extra/js/PKGBUILD

41 lines
969 B
Bash
Raw Normal View History

2013-04-21 23:54:33 +00:00
# $Id$
2011-11-30 01:20:57 +00:00
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2013-04-21 23:54:33 +00:00
# - for those of us that build packages correctly, you actually need to unset the new CPPFLAGS
2011-11-30 01:20:57 +00:00
pkgname=js
2013-04-21 23:54:33 +00:00
pkgver=17.0.0
pkgrel=1
2011-11-30 01:20:57 +00:00
pkgdesc="JavaScript interpreter and libraries"
arch=(i686 x86_64)
2013-04-21 23:54:33 +00:00
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')
2011-11-30 01:20:57 +00:00
build() {
2013-04-21 23:54:33 +00:00
unset CPPFLAGS
2011-11-30 01:20:57 +00:00
2013-04-21 23:54:33 +00:00
cd mozjs$pkgver/js/src
./configure --prefix=/usr --with-system-nspr --with-system-ffi \
--enable-readline --enable-threadsafe
2011-11-30 01:20:57 +00:00
make
}
2013-04-21 23:54:33 +00:00
check() {
cd mozjs$pkgver/js/src
make check
}
2011-11-30 01:20:57 +00:00
package() {
2013-04-21 23:54:33 +00:00
cd mozjs$pkgver/js/src
2011-11-30 01:20:57 +00:00
make DESTDIR="$pkgdir" install
2013-04-21 23:54:33 +00:00
find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
2011-11-30 01:20:57 +00:00
}
2013-04-21 23:54:33 +00:00
# vim:set ts=2 sw=2 et: