mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/mujs.com/package.yml
new file: projects/mujs.com/test.js
This commit is contained in:
parent
7b55400ae5
commit
b7accbd638
2 changed files with 38 additions and 0 deletions
35
projects/mujs.com/package.yml
Normal file
35
projects/mujs.com/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
distributable:
|
||||
url: https://mujs.com/downloads/mujs-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
url: https://mujs.com/downloads
|
||||
match: /mujs-\d+\.\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^mujs-/
|
||||
- /\.tar\.gz/
|
||||
dependencies:
|
||||
linux:
|
||||
gnu.org/readline: ~8.1
|
||||
invisible-island.net/ncurses: '*'
|
||||
build:
|
||||
dependencies:
|
||||
linux:
|
||||
gnu.org/gcc: '*'
|
||||
gnu.org/make: '*'
|
||||
script:
|
||||
- run: |
|
||||
sed -i.bak "s|-lreadline|-lreadline -lncurses|g" Makefile
|
||||
rm *.bak
|
||||
if: linux
|
||||
- make prefix='{{prefix}}' release
|
||||
- make prefix='{{prefix}}' install
|
||||
- make prefix='{{prefix}}' install-shared
|
||||
provides:
|
||||
- bin/mujs
|
||||
- bin/mujs-pp
|
||||
test:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script:
|
||||
- mujs test.js | grep 104
|
||||
- pkg-config --modversion mujs | grep {{version}}
|
3
projects/mujs.com/test.js
Normal file
3
projects/mujs.com/test.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
print('hello, world'.split().reduce(function (sum, char) {
|
||||
return sum + char.charCodeAt(0);
|
||||
}, 0));
|
Loading…
Reference in a new issue