Skip to content

Commit

Permalink
Merge pull request #1 from xlmnxp/master
Browse files Browse the repository at this point in the history
snapcraft build instructions
  • Loading branch information
AXeL-dev authored Sep 19, 2020
2 parents e60e354 + 0a97e82 commit a183f19
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: silaty # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: A neat prayer reminder app # 79 char long summary
description: |
A neat prayer reminder app
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots

parts:
silaty:
plugin: python
python-version: python3
source: .
build-packages:
- python3-pip
- libpulse-dev
stage-packages:
- gir1.2-gtk-3.0
- gir1.2-appindicator3-0.1
- gir1.2-notify-0.7
- libgstreamer1.0-0
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-pulseaudio
- python3-gst-1.0
- libpulse0
- libglu1-mesa
- freeglut3
- libgpm2
- libslang2
python-packages:
- setuptools
- PyGObject
- pip
- wheel
override-stage: |
# copy project files
cp -r $SNAPCRAFT_PART_BUILD/* $SNAPCRAFT_PART_INSTALL
# copy icons
cp $SNAPCRAFT_PART_BUILD/silaty-indicator.py $SNAPCRAFT_PART_INSTALL/silaty-indicator
cp $SNAPCRAFT_PART_BUILD/icons/hicolor/128x128/apps/silaty.svg $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/scalable/apps/
cp $SNAPCRAFT_PART_BUILD/icons/hicolor/128x128/apps/silaty.svg $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/128x128/apps/
cp $SNAPCRAFT_PART_BUILD/icons/hicolor/48x48/apps/silaty.svg $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/48x48/apps/
cp $SNAPCRAFT_PART_BUILD/icons/hicolor/24x24/apps/silaty.svg $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/24x24/apps/
snapcraftctl stage
apps:
silaty:
command: usr/bin/python3 $SNAP/silaty-indicator
desktop: $SNAPCRAFT_PROJECT_DIR/silaty.desktop
extensions: [gnome-3-34]
plugs:
- desktop
- audio-playback
slots:
- dbus-daemon
common-id: com.github.AXeL-dev.silaty

slots:
dbus-daemon:
interface: dbus
bus: session
name: com.github.AXeL-dev.silaty

0 comments on commit a183f19

Please sign in to comment.