# Description: embeddable Javascript engine, with a focus on portability and compact footprint
# URL: https://duktape.org/
# Maintainer: Tim Biermann, tbier at posteo dot de

name=duktape
version=2.7.0
release=2
source=(https://duktape.org/$name-$version.tar.xz)

build() {
  cd $name-$version
  export CFLAGS="$CFLAGS -DDUK_USE_FASTINT"
  make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr
  make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr DESTDIR=$PKG install
}
