-
-
Save Wazzaps/50c2f990fc0e8f7db42577b2f1dc6a66 to your computer and use it in GitHub Desktop.
New fingerpaint snap metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: fingerpaint | |
summary: Draw using your laptop's touchpad | |
version: '1.4.0' | |
grade: stable | |
confinement: strict | |
base: core22 | |
license: GPL-2.0 | |
icon: snap/gui/fingerpaint.svg | |
architectures: | |
- amd64 | |
- arm64 | |
donation: | |
- "https://github.com/sponsors/Wazzaps" | |
- "https://liberapay.com/wazzaps" | |
contact: "david.shlemayev@gmail.com" | |
issues: "https://github.com/Wazzaps/fingerpaint/issues" | |
website: "https://github.com/Wazzaps/fingerpaint" | |
source-code: "https://github.com/Wazzaps/fingerpaint" | |
title: Fingerpaint | |
description: | | |
This utility lets you draw using your laptop's touchpad. | |
Pressing any key or clicking the touchpad will finish the drawing. | |
Your touchpad will not control the cursor while drawing, though external mice should still work. | |
It has support for both X11 (all desktop environments), and Wayland (just Gnome at the moment). | |
apps: | |
fingerpaint: | |
extensions: [gnome] | |
command: bin/fingerpaint | |
plugs: [desktop, wayland, x11, hardware-observe, raw-input, gsettings] | |
slots: [dbus-fingerpaint] | |
environment: | |
PYTHONPATH: "$PYTHONPATH:$SNAP/usr/lib/python3/dist-packages:$SNAP/usr/lib/python3.10:$SNAP/usr/lib/python3.10/lib-dynload:$SNAP/lib/python3.10/site-packages" | |
GI_TYPELIB_PATH: "$SNAP/usr/lib/x86_64-linux-gnu/girepository-1.0" | |
parts: | |
fingerpaint: | |
plugin: python | |
source: "." | |
build-packages: [libcairo2, libglib2.0-bin, gsettings-desktop-schemas] | |
stage-packages: [python3-gi, gir1.2-gtk-4.0, libcairo2, xinput, libglib2.0-bin, dconf-cli, gsettings-desktop-schemas] | |
override-pull: | | |
snapcraftctl pull | |
rm -f ~/project/pyproject.toml | |
touch ~/project/SKIP_DEPS | |
override-prime: | | |
mkdir -p ~/prime/bin ~/prime/lib/python3.10 | |
cp ~/.local/bin/fingerpaint ~/prime/bin/fingerpaint | |
cp -r ~/.local/lib/python3.10/site-packages ~/prime/lib/python3.10/ | |
sed -i 's:#!/snap/.*/current/usr/bin/python3:#!/usr/bin/python3:g' ~/prime/bin/fingerpaint | |
snapcraftctl prime | |
desktop-settings-build: | |
plugin: nil | |
after: [fingerpaint] | |
build-packages: [libglib2.0-bin, gsettings-desktop-schemas] | |
stage-packages: [libglib2.0-bin, gsettings-desktop-schemas] | |
override-prime: | | |
set -eux | |
snapcraftctl prime | |
ls -l usr/share/glib-2.0/ | |
ls -l usr/share/glib-2.0/schemas | |
glib-compile-schemas usr/share/glib-2.0/schemas | |
slots: | |
dbus-fingerpaint: | |
interface: dbus | |
bus: session | |
name: com.github.wazzaps.Fingerpaint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment