2023-10-02 22:26:23 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/svaarala/duktape/releases/download/v{{version}}/duktape-{{version}}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: svaarala/duktape
|
|
|
|
build:
|
|
|
|
script:
|
|
|
|
- make -f Makefile.sharedlibrary install
|
|
|
|
- make -f Makefile.cmdline
|
|
|
|
- mkdir -p {{prefix}}/bin
|
|
|
|
- install duk {{prefix}}/bin/
|
|
|
|
env:
|
2023-11-20 23:54:55 +03:00
|
|
|
INSTALL_PREFIX: '{{prefix}}'
|
|
|
|
linux:
|
|
|
|
LDFLAGS: '$LDFLAGS -lm'
|
2023-10-02 22:26:23 +03:00
|
|
|
provides:
|
|
|
|
- bin/duk
|
|
|
|
test:
|
|
|
|
script:
|
|
|
|
- duk test.js | grep "Hello World!"
|
2023-11-20 23:54:55 +03:00
|
|
|
- cc test.c -o test -lduktape
|
2023-10-02 22:26:23 +03:00
|
|
|
- ./test
|