Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuilding and Fixing Snap Builds #1020

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
64 changes: 64 additions & 0 deletions snapcraft.yaml
@@ -0,0 +1,64 @@
name: foliate
grade: stable
version: '2.5.4'
summary: Foliate is a Simple Yet Powerful E-Book Reader built in Gtk.
description: |
Simple, Advanced and Lightweight Ebook Reader.
license: GPL-3.0+
base: core22
confinement: strict
compression: lzo
architectures:
- build-on: [amd64]
build-for: [amd64]
layout:
/usr/lib/$CRAFT_ARCH_TRIPLET/espeak-ng-data:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/espeak-ng-data
/usr/bin/gjs:
symlink: $SNAP/gnome-platform/usr/bin/gjs

slots:
dbus-daemon:
interface: dbus
bus: session
name: com.github.johnfactotum.Foliate

apps:
foliate:
command: usr/bin/com.github.johnfactotum.Foliate
extensions: [gnome]
plugs:
- network
- audio-playback
- removable-media
slots:
- dbus-daemon
common-id: com.github.johnfactotum.Foliate
desktop: usr/share/applications/com.github.johnfactotum.Foliate.desktop
environment:
GI_TYPELIB_PATH: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/gjs/girepository-1.0

parts:
foliate:
plugin: meson
source: https://github.com/johnfactotum/foliate/archive/refs/tags/2.6.4.tar.gz
meson-parameters: [--prefix=/snap/foliate/current/usr]
override-pull: |
craftctl default
sed -i -e 's|@GJS@|/usr/bin/gjs|g' src/com.github.johnfactotum.Foliate.in
build-packages:
- git
- libgjs-dev
- build-essential
- xmlstarlet
parse-info: [usr/share/metainfo/com.github.johnfactotum.Foliate.appdata.xml]
organize:
snap/foliate/current/usr: usr

tts:
plugin: nil
stage-packages:
- espeak-ng
- speech-dispatcher-espeak-ng
- libaudio2
- libsndio7.0