Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: snapped-atom # you probably want to 'snapcraft register <name>'
- version: '1.19.6' # just for humans - typically '1.2+git' or '1.3.2'
- summary: Hackable editor # 79 char long summary
- description: |
- This is a fork off of atom @ https://github.com/atom/atom.git .
- Forked to create a confined snappy atom on ubuntu core 16 and later.
- Atom is a hackable text editor for the 21st century, built on Electron, and based on everything we love about our favorite editors.
- grade: devel # must be 'stable' to release into candidate/stable channels
- confinement: strict # use 'strict' once you have the right plugs and slots
- type: app
- parts:
- foundation:
- plugin: nodejs
- node-engine: 8.4.0
- source: https://github.com/retrocausal/atom.git
- source-type: git
- source-branch: locallts
- build-packages:
- - build-essential
- - git
- - libsecret-1-0
- - libsecret-common
- - libsecret-1-dev
- - fakeroot
- - libx11-dev
- - libxkbfile-dev
- - gcc-5
- - g++-5
- prepare: |
- sh prepare.sh
- build: |
- sh run.sh
- install: |
- cp -R out/ $SNAPCRAFT_PART_INSTALL
- organize:
- out/: lib/application/
- filesets:
- app:
- - lib/application/*
- stage:
- - $app
- construction:
- plugin: dump
- source: $SNAPCRAFT_STAGE/lib/application/atom-amd64.deb
- source-type: deb
- after:
- - desktop-gtk2
- - foundation
- stage-packages:
- - gconf2
- - gconf-service
- - gir1.2-gnomekeyring-1.0
- - libgtk2.0-0
- - libasound2
- - libnspr4
- - libudev1
- - libpulse0
- - libxss1
- - libgcrypt20
- - libnotify4
- - libxtst6
- - libnss3
- - python
- - gvfs-bin
- - xdg-utils
- - libcap2
- - libatk-adaptor
- - libgail-common
- - libgl1-mesa-glx
- - libglu1-mesa
- - ubuntu-make
- prepare:
- sed -i 's|Icon=atom|Icon=/usr/share/pixmaps/atom\.png|g' usr/share/applications/atom.desktop
- apps:
- snapped-atom:
- command: env TMPDIR=$XDG_RUNTIME_DIR PATH=/usr/local/bin:${PATH} ${SNAP}/bin/desktop-launch ${SNAP}/usr/share/atom/atom
- desktop: usr/share/applications/atom.desktop
- plugs:
- - home
- - network
- - screen-inhibit-control
- - removable-media
- - pulseaudio
- - opengl
- - gsettings
- - browser-support
- - unity7
- - upower-observe
- - x11
- #plugs:
- # browser-sandbox:
- # interface: browser-support
- # allow-sandbox: true
Add Comment
Please, Sign In to add comment