I’m trying to make a Flatpak of this Flutter app: https://github.com/hamaluik/timecop . I’m using FluffyChat as my inspiration.
There’s one place where I’m getting stuck: I can’t figure out how to include SQLite 3, which the app depends on. FluffyChat seems to accomplish this by including two cmake dependencies: olm and libjsoncpp. Both seem to yield a /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 file, even though neither are directly related to SQLite.
I don’t have a need for any of these libraries, but I do need SQLite 3. How do I do that?
For reference, this is my current Flatpak YAML draft:
app-id: ca.hamaluik.Timecop
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: timecop
separate-locales: false
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --share=network
- --device=dri
- --talk-name=org.freedesktop.Notifications
modules:
- name: timecop
buildsystem: simple
build-commands:
- cp -R /usr/bin/ /app/timecop
- mkdir /app/bin/
- ln -s /app/timecop/timecop /app/bin/timecop
- ln -s /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /app/lib/libsqlite3.so
- install -Dm644 usr/share/ca.hamaluik.Timecop.svg /app/share/icons/hicolor/scalable/apps/ca.hamaluik.Timecop.svg,
- install -Dm644 usr/share/ca.hamaluik.Timecop.desktop /app/share/applications/ca.hamaluik.Timecop.desktop,
- install -Dm644 usr/share/ca.hamaluik.Timecop.appdata.xml /app/share/appdata/ca.hamaluik.Timecop.appdata.xml
sources:
- type: archive
only-arches:
- x86_64
path: "timecop-linux-x86_64.tar.xz"
dest: "timecop"
And this is the error I get:
ln -s /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /app/lib/libsqlite3.so
ln: failed to create symbolic link '/app/lib/libsqlite3.so': No such file or directory