app: lune

ingredients:
  script:
    - dl_uri=$(curl "https://api.github.com/repos/filiptibell/lune/releases/latest" | grep -E "https.*lune-.*linux-$(uname -m).zip" | cut -d '"' -f4)
    - wget $dl_uri
    - unzip lune-*.zip


script:
  - cp -r ../lune ./usr/bin
  - cat > lune.desktop <<EOF
  - [Desktop Entry]
  - Type=Application
  - Name=lune
  - Exec=lune
  - Icon=lune
  - Categories=Development;
  - Terminal=true
  - EOF
  - wget https://raw.githubusercontent.com/microsoft/fluentui-emoji/dfb5c3b7b10e20878a3fee6e3b05660e4d3bd9d5/assets/Crescent%20moon/3D/crescent_moon_3d.png -O usr/share/icons/hicolor/256x256/apps/lune.png
  - cp usr/share/icons/hicolor/256x256/apps/lune.png .
