wok-next annotate duktape/receipt @ rev 19961

Remove libtinfo dep
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 17 10:26:48 2017 +0200 (2017-10-17)
parents
children b19ddba309f9
rev   line source
al@19868 1 # SliTaz package receipt v2.
al@19868 2
al@19868 3 PACKAGE="duktape"
al@19868 4 VERSION="2.1.1"
al@19868 5 CATEGORY="libs"
al@19868 6 SHORT_DESC="Embeddable Javascript engine"
al@19868 7 MAINTAINER="al.bobylev@gmail.com"
al@19868 8 LICENSE="MIT"
al@19868 9 WEB_SITE="http://duktape.org/"
al@19868 10
al@19868 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19868 12 WGET_URL="http://duktape.org/$TARBALL"
al@19868 13
al@19868 14 SPLIT="duktape-dev"
al@19868 15
al@19868 16 compile_rules() {
al@19868 17 mv Makefile.sharedlibrary Makefile
al@19868 18 sed -i 's|-Wall -Wextra|$(CFLAGS)|g' Makefile
al@19868 19 sed -i "s|/usr/local|$install/usr|" Makefile
al@19868 20 cp $stuff/duktape.pc .
al@19868 21 sed -i "s|@@VERSION@@|$VERSION|" duktape.pc
al@19868 22
al@19868 23 CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" make
al@19868 24
al@19868 25 mkdir -p $install/usr/lib/pkgconfig $install/usr/include
al@19868 26 make install
al@19868 27 cp duktape.pc $install/usr/lib/pkgconfig/
al@19868 28 }
al@19868 29
al@19868 30 genpkg_rules() {
al@19868 31 case $PACKAGE in
al@19868 32 duktape) copy @std;;
al@19868 33 *-dev) copy @dev;;
al@19868 34 esac
al@19868 35 }