wok-next view js185/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children e19ff076dc63
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/svn/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="$PACKAGE-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 &&
30 make install || return 1
32 install -Dm755 shell/js -t $install/usr/bin/
33 rm $install/usr/lib/libmozjs185-1.0.a
35 find $install -type f \
36 \( -name '*.h' -o -name '*.tbl' -o -name '*.msg' -o -name '*.a' \) \
37 -exec chmod 644 '{}' \;
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 js185)
43 copy @std
44 DEPENDS="libffi nspr"
45 ;;
46 js185-dev)
47 copy @dev
48 DEPENDS="js185 nspr-dev"
49 ;;
50 esac
51 }