mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
36 lines
900 B
Bash
36 lines
900 B
Bash
# Maintainer Ram-Z <samir.benmendil[at]gmail[dot]com>
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
|
|
|
pkgname=js
|
|
_pkgname=mozjs
|
|
pkgver=45.0.2
|
|
pkgrel=1
|
|
pkgdesc="JavaScript interpreter and libraries"
|
|
arch=('x86_64')
|
|
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
|
|
license=('GPL2')
|
|
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
|
|
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
|
|
SHELL="/bin/sh" make
|
|
}
|
|
|
|
package() {
|
|
cd $_pkgname-$pkgver/js/src/build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|