37 lines
735 B
YAML
37 lines
735 B
YAML
id: "red"
|
|
name: "Red"
|
|
|
|
install:
|
|
apt:
|
|
- libcurl4:i386
|
|
manual: |
|
|
install -d "${pkg}/opt/red/skel"
|
|
install -d "${pkg}/usr/local/bin"
|
|
|
|
path="$(curl -fsSL https://static.red-lang.org/download.html | grep -Eo '/dl/linux/[^"]+' | head -n1)"
|
|
wget "https://static.red-lang.org${path}" -O red
|
|
chmod +x red
|
|
cp red "${pkg}/usr/local/bin/"
|
|
|
|
./red <<< quit
|
|
cp -R "$HOME/.red" "${pkg}/opt/red/skel/"
|
|
|
|
setup: |
|
|
shopt -s dotglob; cp -R /opt/red/skel/* "${HOME}/"
|
|
|
|
# https://github.com/red/red/issues/543#issuecomment-25404212
|
|
repl: |
|
|
"$(which red)"
|
|
input: |
|
|
DELAY: 5
|
|
123 * 234
|
|
|
|
main: "main.red"
|
|
template: |
|
|
Red [Title: "Main"]
|
|
|
|
print "Hello, world!"
|
|
|
|
run: |
|
|
"$(which red)" main.red; "$(which red)"
|