Skip to content

Commit

Permalink
Install Calculator Flatpak (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl committed Nov 2, 2022
1 parent e47bed1 commit d934e96
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Homepage: https://github.com/elementary/calculator

Package: io.elementary.calculator
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Depends: flatpak, ${misc:Depends}, ${shlibs:Depends}
Breaks: pantheon-calculator
Replaces: pantheon-calculator
Description: Calculate in an elementary way.
Expand Down
2 changes: 0 additions & 2 deletions debian/io.elementary.calculator.install

This file was deleted.

10 changes: 10 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

set -e

flatpak remote-add --if-not-exists --system appcenter https://flatpak.elementary.io/repo.flatpakrepo
flatpak install --system --noninteractive appcenter io.elementary.calculator//stable || true

#DEBHELPER#

exit 0
9 changes: 9 additions & 0 deletions debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -e

flatpak remove --system --noninteractive io.elementary.calculator//stable || true

#DEBHELPER#

exit 0
6 changes: 1 addition & 5 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@
#export DH_VERBOSE=1

%:
dh $@ --buildsystem=meson

override_dh_install:
dh_install --fail-missing

dh $@

0 comments on commit d934e96

Please sign in to comment.