NAME="duktape"
DESC="Embeddable Javascript engine"
VERSION="2.7.0"
FILES=("https://duktape.org/duktape-$VERSION.tar.xz")
HASHES=("b3200b02ab80125b694bae887d7c1ca6")
DEPENDS=()

PACKAGE() {
  tar xf $NAME-$VERSION.tar.xz
  cd $NAME-$VERSION

  sed -i 's/-Os/-O2/' Makefile.sharedlibrary
  make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr
  make -f Makefile.sharedlibrary DESTDIR="$ROOTDIR" INSTALL_PREFIX=/usr install

  cd .. && rm -r $NAME-$VERSION
}
