[arch-commits] Commit in gnome-packagekit/trunk (0001-alpm-hooks.patch PKGBUILD)
Christian Hesse
eworm at archlinux.org
Fri Jun 2 12:23:42 UTC 2017
Date: Friday, June 2, 2017 @ 12:23:41
Author: eworm
Revision: 233412
upgpkg: gnome-packagekit 3.24.0-1.1
support alpm hooks
Added:
gnome-packagekit/trunk/0001-alpm-hooks.patch
Modified:
gnome-packagekit/trunk/PKGBUILD
-----------------------+
0001-alpm-hooks.patch | 36 ++++++++++++++++++++++++++++++++++++
PKGBUILD | 14 +++++++++++---
2 files changed, 47 insertions(+), 3 deletions(-)
Added: 0001-alpm-hooks.patch
===================================================================
--- 0001-alpm-hooks.patch (rev 0)
+++ 0001-alpm-hooks.patch 2017-06-02 12:23:41 UTC (rev 233412)
@@ -0,0 +1,36 @@
+From 25da5747d55adceb7ccebba4e82af295eb397cb7 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Thu, 1 Jun 2017 16:15:59 +0200
+Subject: [PATCH 1/1] Add new status "Running hooks"
+
+Removed version check from upstream patch.
+---
+ src/gpk-enum.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/src/gpk-enum.c b/src/gpk-enum.c
+index 09a11183..2bf8af53 100644
+--- a/src/gpk-enum.c
++++ b/src/gpk-enum.c
+@@ -95,6 +95,7 @@ static const PkEnumMatch enum_status_icon_name[] = {
+ {PK_STATUS_ENUM_CHECK_EXECUTABLE_FILES, "pk-package-info"},
+ {PK_STATUS_ENUM_CHECK_LIBRARIES, "pk-package-info"},
+ {PK_STATUS_ENUM_COPY_FILES, "pk-package-info"},
++ {PK_STATUS_ENUM_RUN_HOOK, "pk-setup"},
+ {0, NULL}
+ };
+
+@@ -888,6 +891,10 @@ gpk_status_enum_to_localised_text (PkStatusEnum status)
+ /* TRANSLATORS: we are copying package files to prepare to install */
+ text = _("Copying files");
+ break;
++ case PK_STATUS_ENUM_RUN_HOOK:
++ /* TRANSLATORS: we are running hooks pre or post transaction */
++ text = _("Running hooks");
++ break;
+ default:
+ g_warning ("status unrecognized: %s", pk_status_enum_to_string (status));
+ }
+--
+2.13.0
+
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-02 12:16:57 UTC (rev 233411)
+++ PKGBUILD 2017-06-02 12:23:41 UTC (rev 233412)
@@ -5,7 +5,7 @@
pkgname=gnome-packagekit
pkgver=3.24.0
-pkgrel=1
+pkgrel=1.1
pkgdesc='Collection of graphical tools for PackageKit to be used in the GNOME desktop'
arch=('i686' 'x86_64')
url='http://www.packagekit.org/'
@@ -12,9 +12,17 @@
license=('GPL')
depends=('desktop-file-utils' 'gtk3' 'libnotify' 'packagekit')
makedepends=('intltool' 'itstool' 'docbook-xsl' 'libcanberra')
-source=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz")
-sha256sums=('8d038681f6879c93f3f58faaa37c41c7ac8cf53eba6b8cb871f5f683ac0bd13f')
+source=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+ '0001-alpm-hooks.patch')
+sha256sums=('8d038681f6879c93f3f58faaa37c41c7ac8cf53eba6b8cb871f5f683ac0bd13f'
+ 'f30c6ba74f47d10f56fc9c602cc4e4a03a19526ef02eea28752739f267c8483c')
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -Np1 < "${srcdir}"/0001-alpm-hooks.patch
+}
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
More information about the arch-commits
mailing list