[arch-commits] Commit in flatpak/trunk (PKGBUILD flatpak.install)

Jan Steffens heftig at archlinux.org
Tue May 24 08:03:56 UTC 2016


    Date: Tuesday, May 24, 2016 @ 10:03:55
  Author: heftig
Revision: 268527

0.6.1-3

Added:
  flatpak/trunk/flatpak.install
Modified:
  flatpak/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    3 ++-
 flatpak.install |   11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-05-24 06:18:12 UTC (rev 268526)
+++ PKGBUILD	2016-05-24 08:03:55 UTC (rev 268527)
@@ -3,7 +3,7 @@
 
 pkgname=flatpak
 pkgver=0.6.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Application deployment framework for desktop apps"
 url="http://flatpak.org"
 arch=(i686 x86_64)
@@ -11,6 +11,7 @@
 depends=(dbus systemd glib2 libsoup polkit xorg-xauth libgsystem ostree fuse
          json-glib libseccomp libarchive libelf libcap)
 makedepends=(intltool python libxslt gobject-introspection gtk-doc git)
+install=flatpak.install
 source=("git+https://github.com/flatpak/flatpak#tag=$pkgver"
         "git+https://git.gnome.org/browse/libglnx"
         "git+https://github.com/projectatomic/bubblewrap")

Added: flatpak.install
===================================================================
--- flatpak.install	                        (rev 0)
+++ flatpak.install	2016-05-24 08:03:55 UTC (rev 268527)
@@ -0,0 +1,11 @@
+post_install() {
+  post_upgrade $1 0
+}
+
+post_upgrade() {
+  if (( $(vercmp $2 0.6.1-3) < 0 )); then
+    # Generate initial /var/lib/flatpak/repo; must be present
+    # before non-root flatpak will try polkit auth
+    flatpak remote-list
+  fi
+}



More information about the arch-commits mailing list