wok-next view js185/receipt @ rev 20949
Fix homepages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 01 16:21:51 2018 +0300 (2018-09-01) |
parents | |
children | f48456621a9d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="js185"
4 VERSION="1.0.0"
5 CATEGORY="libdevel"
6 SHORT_DESC="JavaScript interpreter and libraries (legacy)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/1.8.5"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/js38.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.mozilla.org/pub/js/$TARBALL"
15 BUILD_DEPENDS="perl zip nspr-dev libffi-dev"
16 SPLIT="js185-dev"
18 compile_rules() {
19 cd js/src
20 unset CPPFLAGS
22 ./configure \
23 --with-system-nspr \
24 --disable-tests \
25 --enable-ctypes \
26 --enable-threadsafe \
27 --enable-system-ffi \
28 $CONFIGURE_ARGS &&
29 make && make install || return 1
31 install -Dm755 shell/js -t $install/usr/bin/
32 rm $install/usr/lib/libmozjs185-1.0.a
34 find $install -type f \
35 \( -name '*.h' -o -name '*.tbl' -o -name '*.msg' -o -name '*.a' \) \
36 -exec chmod 644 '{}' \;
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 js185)
42 copy @std
43 DEPENDS="libffi nspr"
44 ;;
45 js185-dev)
46 copy @dev
47 DEPENDS="js185 nspr-dev"
48 ;;
49 esac
50 }