31 lines
696 B
YAML
31 lines
696 B
YAML
id: "ink"
|
|
name: "Ink"
|
|
|
|
install:
|
|
manual: |
|
|
install -d "${pkg}/opt/ink"
|
|
install -d "${pkg}/usr/local/bin"
|
|
|
|
ver="$(latest_release thesephist/ink)"
|
|
wget "https://github.com/thesephist/ink/releases/download/${ver}/ink-linux"
|
|
wget "https://github.com/thesephist/ink/releases/download/${ver}/std.ink"
|
|
wget "https://github.com/thesephist/ink/releases/download/${ver}/str.ink"
|
|
chmod +x ink-linux
|
|
cp -T ink-linux "${pkg}/usr/local/bin/ink"
|
|
cp std.ink str.ink "${pkg}/opt/ink/"
|
|
|
|
repl: |
|
|
ink
|
|
|
|
main: "main.ink"
|
|
template: |
|
|
std := load('../../../opt/ink/std')
|
|
str := load('../../../opt/ink/str')
|
|
|
|
log := std.log
|
|
|
|
log('Hello, world!')
|
|
|
|
run: |
|
|
ink main.ink; ink
|