wok-next view duktape/receipt @ rev 20519

Synchronize wok-hg with wok. Some yesterday's patches are lost :(
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 23 10:45:35 2018 +0200 (2018-03-23)
parents 417f77dae192
children afcdeab84551
line source
1 # SliTaz package receipt v2.
3 PACKAGE="duktape"
4 VERSION="2.2.0"
5 CATEGORY="libs"
6 SHORT_DESC="Embeddable Javascript engine"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://duktape.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://duktape.org/$TARBALL"
14 SPLIT="duktape-dev"
16 compile_rules() {
17 mv Makefile.sharedlibrary Makefile
18 sed -i 's|-Wall -Wextra|$(CFLAGS)|g' Makefile
19 sed -i "s|/usr/local|$install/usr|" Makefile
20 cp $stuff/duktape.pc .
21 sed -i "s|@@VERSION@@|$VERSION|" duktape.pc
23 CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" \
24 make
26 mkdir -p \
27 $install/usr/lib/pkgconfig/ \
28 $install/usr/include/
29 make install
30 cp duktape.pc $install/usr/lib/pkgconfig/
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 duktape) copy @std;;
36 *-dev) copy @dev;;
37 esac
38 }