wok-next view duktape/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 afcdeab84551
children 1de0c8432a20
line source
1 # SliTaz package receipt v2.
3 PACKAGE="duktape"
4 VERSION="2.3.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="352105b39979fc766bbd0b3721e8c2b5"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 mv Makefile.sharedlibrary Makefile
19 sed -i.orig 's|-Wall -Wextra|$(CFLAGS)|g' Makefile
20 sed -i "s|/usr/local|$install/usr|" Makefile
21 cp $stuff/duktape.pc .
22 sed -i "s|@@VERSION@@|$VERSION|" duktape.pc
24 CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" \
25 make || return 1
27 mkdir -p \
28 $install/usr/lib/pkgconfig/ \
29 $install/usr/include/
30 make install
31 cp duktape.pc $install/usr/lib/pkgconfig/
32 }
34 genpkg_rules() {
35 case $PACKAGE in
36 duktape) copy @std;;
37 *-dev) copy @dev;;
38 esac
39 }