wok-next view duktape/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="duktape"
4 VERSION="2.5.0"
5 CATEGORY="libs"
6 SHORT_DESC="Embeddable Javascript engine"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://duktape.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://duktape.org/$TARBALL"
13 TARBALL_MD5="e55fe3830f0d469dc67205b380515af0"
15 SPLIT="$PACKAGE-dev"
17 compile_rules()
18 {
19 mv Makefile.sharedlibrary Makefile
20 sed -i.orig 's|-Wall -Wextra|$(CFLAGS)|g' \
21 Makefile
22 sed -i "s|/usr/local|$install/usr|" \
23 Makefile
24 cp $stuff/duktape.pc .
25 sed -i "s|@@VERSION@@|$VERSION|" \
26 duktape.pc
28 CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" \
29 make || return 1
31 mkdir -p \
32 $install/usr/lib/pkgconfig/ \
33 $install/usr/include/
34 make install
35 cp duktape.pc $install/usr/lib/pkgconfig/
36 }
38 genpkg_rules()
39 {
40 case $PACKAGE in
41 duktape) copy @std;;
42 *-dev) copy @dev;;
43 esac
44 }