pantry/projects/duktape.org/package.yml
Andrew f52badaf80
libproxy.github.io/libproxy (#3513)
* new file:   projects/libproxy.github.io/libproxy/package.yml

* display-name

* curl

* maybe

* llvm

* wip

* wip

* add gcc

* llvm

* include -lm on linux

* maybe it's duktape that needs libm

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
2023-11-20 15:54:55 -05:00

23 lines
538 B
YAML

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:
INSTALL_PREFIX: '{{prefix}}'
linux:
LDFLAGS: '$LDFLAGS -lm'
provides:
- bin/duk
test:
script:
- duk test.js | grep "Hello World!"
- cc test.c -o test -lduktape
- ./test