wok-next view duktape/receipt @ rev 20044
gdb: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 22 21:25:10 2017 +0200 (2017-10-22) |
parents | |
children | b19ddba309f9 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="duktape"
4 VERSION="2.1.1"
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" make
25 mkdir -p $install/usr/lib/pkgconfig $install/usr/include
26 make install
27 cp duktape.pc $install/usr/lib/pkgconfig/
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 duktape) copy @std;;
33 *-dev) copy @dev;;
34 esac
35 }