/nasc-flatpak

Flatpak package for NaSC

nasc-flatpak

NaSC is an app where you do maths like a normal person. It lets you type whatever you want and smartly figures out what is math and spits out an answer on the right pane. Then you can plug those answers in to future equations and if that answer changes, so does the equations it's used in.

nasc-flatpak screenshot

Homepage

This repo is about the flatpak package.

Instructions

Requirements

For EL7:

# yum install 'flatpak' 'flatpak-builder'

You may also wish to install the xdg-desktop-portal* packages:

# yum install 'xdg-desktop-portal*'

See also:

Adding repository

$ flatpak remote-add --if-not-exists "flathub" "https://dl.flathub.org/repo/flathub.flatpakrepo"

See also:

Prepare

$ flatpak install "flathub" "org.gnome.Sdk//3.34"
$ flatpak install "flathub" "org.gnome.Platform//3.34"
$ flatpak install "flathub" "io.elementary.BaseApp//juno-19.08"

Clone this repository, then checkout the right branch.

$ git submodule init
$ git submodule update

Build

$ flatpak-builder "build" "com.github.parnold_x.nasc.yaml" --force-clean --install-deps-from="flathub"

Test

$ flatpak-builder --run "build" "com.github.parnold_x.nasc.yaml" "sh"

Test run

$ flatpak-builder --run "build" "com.github.parnold_x.nasc.yaml" "nasc"

Create repo

$ flatpak-builder --repo="repo" --force-clean "build" "com.github.parnold_x.nasc.yaml"

Install

$ flatpak --user remote-add --no-gpg-verify "nasc" "repo"
$ flatpak --user install "nasc" "com.github.parnold_x.nasc"

Run

$ flatpak run "com.github.parnold_x.nasc"

Uninstall

$ flatpak --user uninstall "com.github.parnold_x.nasc"
$ flatpak --user remote-delete "nasc"

Build single-file bundle

$ flatpak build-bundle "repo" "nasc.flatpak" "com.github.parnold_x.nasc" --runtime-repo="https://flathub.org/repo/flathub.flatpakrepo"

Install single-file bundle

If you have already installed the package, you have to uninstall it before continuing.

$ flatpak --user install "nasc.flatpak"

See also:

FAQ

Why not a RPM package?

I already provided COPR repo with (S)RPM packages for EL and Fedora.

Are you the author of NaSC?

No, I only created the flatpak package for it.

See also: