mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 18:45:19 +03:00
40 lines
979 B
YAML
40 lines
979 B
YAML
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
|
|
- run: |
|
|
sed -i.bak 's/Version: \([^\ ]*\)/Version: {{version}}/g' *.pc
|
|
rm *.bak
|
|
working-directory: "{{prefix}}/lib/pkgconfig"
|
|
provides:
|
|
- bin/mujs
|
|
- bin/mujs-pp
|
|
test:
|
|
dependencies:
|
|
freedesktop.org/pkg-config: '*'
|
|
script:
|
|
- mujs test.js | grep 104
|
|
- pkg-config --modversion mujs | grep {{version}}
|