id: nu.lume.Lume
runtime: org.gnome.Platform
runtime-version: '45'
sdk: org.gnome.Sdk
command: lume
rename-icon: lume

finish-args:
  - --socket=wayland
  - --socket=fallback-x11
  - --socket=pulseaudio
  - --share=ipc
  - --share=network
  #- --filesystem=home
  #- --filesystem=xdg-download
  - --talk-name=org.freedesktop.secrets
  - --talk-name=org.freedesktop.Notifications
  - --talk-name=org.kde.StatusNotifierWatcher
  - --filesystem=xdg-run/keyring
  - --device=dri

modules:
  - shared-modules/libappindicator/libappindicator-gtk3-12.10.json
  - name: lume
    sources:
      - type: dir
        path: usr
      - type: file
        path: nu.lume.Lume.desktop
      - type: file
        path: nu.lume.Lume.appdata.xml
    buildsystem: simple
    build-commands:
      - install -Dm755 bin/lume /app/bin/lume
    #   - install -Dm755 bin/depot /app/bin/depot
    #   - mkdir -p /app/lib/lume/resources
    #  - cp -r lib/lume/resources /app/lib/lume/resources
      - mkdir -p /app/share/icons/hicolor/
      - cp -r share/icons/hicolor/ /app/share/icons/
      - install -Dm644 nu.lume.Lume.appdata.xml /app/share/metainfo/nu.lume.Lume.appdata.xml
      - install -Dm644 nu.lume.Lume.desktop /app/share/applications/nu.lume.Lume.desktop
