desktop/js/PKGBUILD

36 lines
900 B
Bash
Raw Normal View History

# Maintainer Ram-Z <samir.benmendil[at]gmail[dot]com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
pkgname=js
2016-08-28 21:20:41 +08:00
_pkgname=mozjs
pkgver=45.0.2
pkgrel=1
pkgdesc="JavaScript interpreter and libraries"
arch=('x86_64')
2016-08-28 21:20:41 +08:00
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
license=('GPL2')
2016-08-28 21:20:41 +08:00
depends=('nspr' 'readline' 'zlib')
makedepends=('autoconf2.13' 'python2' 'zip' 'libffi')
options=(!buildflags)
source=(https://people.mozilla.org/~sfink/$_pkgname-$pkgver.tar.bz2)
sha1sums=('68a0fbb9c3f988ab28ea3817e0669ee6fe6c93ed')
build() {
cd mozjs-$pkgver/js/src
2016-08-28 21:20:41 +08:00
autoconf-2.13
[[ -d build ]] && rm -rf build
mkdir build && cd build
../configure \
--prefix=/usr \
--with-system-nspr \
--enable-system-ffi \
--enable-readline \
--enable-threadsafe
2016-08-28 21:20:41 +08:00
SHELL="/bin/sh" make
}
package() {
2016-08-28 21:20:41 +08:00
cd $_pkgname-$pkgver/js/src/build
make DESTDIR="$pkgdir" install
}