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

Jan Steffens heftig at gemini.archlinux.org
Tue Nov 2 22:45:38 UTC 2021


    Date: Tuesday, November 2, 2021 @ 22:45:38
  Author: heftig
Revision: 427008

3.41.0-1

Modified:
  gcr/trunk/PKGBUILD
  gcr/trunk/gcr.install

-------------+
 PKGBUILD    |   14 +++++++-------
 gcr.install |   13 ++++++++++++-
 2 files changed, 19 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-02 22:35:09 UTC (rev 427007)
+++ PKGBUILD	2021-11-02 22:45:38 UTC (rev 427008)
@@ -2,16 +2,16 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=gcr
-pkgver=3.40.0
+pkgver=3.41.0
 pkgrel=1
 pkgdesc="A library for bits of crypto UI and parsing"
 url="https://gitlab.gnome.org/GNOME/gcr"
 arch=(x86_64)
 license=(GPL2)
-depends=(gtk3 libgcrypt p11-kit)
+depends=(gtk3 libgcrypt p11-kit openssh libsecret)
 makedepends=(gobject-introspection vala libxslt git gtk-doc meson)
 provides=(libgck-1.so libgcr-{base,ui}-3.so)
-_commit=dbde3e131180bcee7c930e21170da05ec0494a3d  # tags/3.40.0^0
+_commit=f5026a8c9c7d78372b3efeca3412b0e40011ce11  # tags/3.41.0^0
 backup=(etc/security/limits.d/10-gcr.conf)
 install=gcr.install
 source=("git+https://gitlab.gnome.org/GNOME/gcr.git#commit=$_commit")
@@ -18,16 +18,16 @@
 sha256sums=('SKIP')
 
 pkgver() {
-  cd $pkgname
+  cd gcr
   git describe --tags | sed 's/-/+/g'
 }
 
 prepare() {
-  cd $pkgname
+  cd gcr
 }
 
 build() {
-  arch-meson $pkgname build
+  arch-meson gcr build
   meson compile -C build
 }
 
@@ -37,7 +37,7 @@
 }
 
 package() {
-  DESTDIR="$pkgdir" meson install -C build
+  meson install -C build --destdir "$pkgdir"
 
   # gcr wants to lock some memory to prevent swapping out private keys
   # https://bugs.archlinux.org/task/32616

Modified: gcr.install
===================================================================
--- gcr.install	2021-11-02 22:35:09 UTC (rev 427007)
+++ gcr.install	2021-11-02 22:45:38 UTC (rev 427008)
@@ -1,4 +1,7 @@
 post_install() {
+  # Enable socket by default
+  systemctl --global enable gcr-ssh-agent.socket
+
   cat <<END
 >>> gcr contains /etc/security/limits.d/10-gcr.conf which sets the memlock limit
     in order to allow GCR to lock private keys in memory. If you have configured
@@ -6,4 +9,12 @@
 END
 }
 
-# vim:set ft=bash sw=2:
+post_upgrade() {
+  if (( $(vercmp $2 3.41.0-1) < 0)); then
+    systemctl --global enable gcr-ssh-agent.socket
+  fi
+}
+
+pre_remove() {
+  systemctl --global disable gcr-ssh-agent.socket
+}



More information about the arch-commits mailing list