Date: Tuesday, December 18, 2018 @ 00:01:07 Author: bgyorgy Revision: 416589
upgpkg: gwenhywfar 4.20.1-1 Update to new version, adopt the package Modified: gwenhywfar/trunk/PKGBUILD Deleted: gwenhywfar/trunk/gtk3-fixes.patch ------------------+ PKGBUILD | 40 ++++++++-------- gtk3-fixes.patch | 126 ----------------------------------------------------- 2 files changed, 21 insertions(+), 145 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-12-17 23:55:25 UTC (rev 416588) +++ PKGBUILD 2018-12-18 00:01:07 UTC (rev 416589) @@ -1,39 +1,41 @@ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> # Contributor: Sergej Pupykin <[email protected]> # Contributor: William Rea <[email protected]> pkgname=gwenhywfar -pkgver=4.20.0 -_dnrel=208 -pkgrel=2 +pkgver=4.20.1 +pkgrel=1 pkgdesc="OS abstraction functions for various projects" arch=(x86_64) url="https://www.aquamaniac.de/" license=(LGPL) -depends=('openssl' 'gnutls' 'libgcrypt' 'libice' 'libsm') -makedepends=('gtk3' 'qt5-base') -optdepends=('gtk3: for the GTK3 UI' 'qt5-base: for the Qt5 UI') -source=(gwenhywfar-$pkgver.tar.gz::"https://www.aquamaniac.de/sites/download/download.php?package=01&release=${_dnrel}&file=02&dummy=gwenhywfar-$pkgver.tar.gz" - $pkgname-$pkgver.tar.gz.asc::"https://www.aquamaniac.de/sites/download/download.php?package=01&release=${_dnrel}&file=01&dummy=gwenhywfar-$pkgver.tar.gz.asc" - gtk3-fixes.patch) -sha256sums=('5a88daabba1388f9528590aab5de527a12dd44a7da4572ce48469a29911b0fb0' - 'SKIP' - 'd76b62a725482b6a87d88c21b69e96c512d636157cfc8ad67be4bfec5fa2b402') -validpgpkeys=(42400AF5EB2A17F0A69BB551E9899D784A977416) # AqBanking Package Key <[email protected]> +depends=(gnutls libgcrypt openssl) +makedepends=(git gtk3 qt5-base) +optdepends=('gtk3: for the GTK3 UI' + 'qt5-base: for the Qt5 UI') +_commit=f7db2a496044ab4ea5c6d5c52378cb6fc4e143c9 # tags/4.20.1 +source=("git+https://git.aquamaniac.de/git/gwenhywfar#commit=$_commit") +sha256sums=('SKIP') +#validpgpkeys=(42400AF5EB2A17F0A69BB551E9899D784A977416) # AqBanking Package Key <[email protected]> +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' +} + prepare() { - cd $pkgname-$pkgver - # Apply upstream fixes for the GTK3 UI - patch -Np1 -i ../gtk3-fixes.patch + cd $pkgname + autoreconf -fi } build() { - cd $pkgname-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc --enable-ssl --enable-system-certs --with-guis="gtk3 qt5" + cd $pkgname + ./configure --prefix=/usr --sysconfdir=/etc --enable-system-certs --with-guis="gtk3 qt5" sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { - cd $pkgname-$pkgver + cd $pkgname make DESTDIR="$pkgdir" install } Deleted: gtk3-fixes.patch =================================================================== --- gtk3-fixes.patch 2018-12-17 23:55:25 UTC (rev 416588) +++ gtk3-fixes.patch 2018-12-18 00:01:07 UTC (rev 416589) @@ -1,126 +0,0 @@ -From c9c916b97a14cde9196203d0303643e7c8a7ce41 Mon Sep 17 00:00:00 2001 -From: Christian Stimming <[email protected]> -Date: Sun, 1 Apr 2018 23:25:31 +0200 -Subject: [PATCH 1/4] Bug794707 - Aqbanking combo boxes missing selection. - -Modified w_combobox.c setup procedure was had an error when modified -for gtk3 use. - -Patch by Robert Fewell, 7033b331ee47b601279e68464323fe76b7ceebe5 in gnucash. ---- - gui/gtk3/w_combobox.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/gui/gtk3/w_combobox.c b/gui/gtk3/w_combobox.c -index fce098a3..deb75254 100644 ---- a/gui/gtk3/w_combobox.c -+++ b/gui/gtk3/w_combobox.c -@@ -258,10 +258,13 @@ int Gtk3Gui_WComboBox_Setup(GWEN_WIDGET *w) { - /* create widget */ - store=gtk_list_store_new(1, G_TYPE_STRING); - if (flags & GWEN_WIDGET_FLAGS_READONLY) -- g=gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL(store)); -+ g=gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); - else -+ { - /* TODO: why the heck does *this* combo box have two columns in the list?? */ - g=gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL(store)); -+ gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX(g), 0); -+ } - g_object_unref(store); - - cr=gtk_cell_renderer_text_new(); - -From 8da8ecd637e2a2b31d85ce600cffae0452e6e61f Mon Sep 17 00:00:00 2001 -From: Christian Stimming <[email protected]> -Date: Sun, 1 Apr 2018 23:26:23 +0200 -Subject: [PATCH 2/4] Couple of missing properties for groupbox - -When fixing related combo error a couple of critical errors were logged -for 'Function is not appropriate for this type of widget' which turned -out to be visibility properties so added them to stop error. - -Patch by Robert Fewell in gnucash f7211edbabdc8c802168b93973a1164067fed264 ---- - gui/gtk3/w_groupbox.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/gui/gtk3/w_groupbox.c b/gui/gtk3/w_groupbox.c -index e15b930c..0bbb6766 100644 ---- a/gui/gtk3/w_groupbox.c -+++ b/gui/gtk3/w_groupbox.c -@@ -36,6 +36,10 @@ int Gtk3Gui_WGroupBox_SetIntProperty(GWEN_WIDGET *w, - /* just ignore these for now */ - return 0; - -+ case GWEN_DialogProperty_Visibility: -+ gtk_widget_set_visible (GTK_WIDGET(g), (value==0)?FALSE:TRUE); -+ return 0; -+ - default: - break; - } -@@ -72,6 +76,9 @@ int Gtk3Gui_WGroupBox_GetIntProperty(GWEN_WIDGET *w, - /* just ignore these for now */ - return 0; - -+ case GWEN_DialogProperty_Visibility: -+ return (gtk_widget_get_visible(GTK_WIDGET(g))==TRUE)?1:0; -+ - default: - break; - } - -From 0c05f39b189c203c2f15df2e889f46fcc68dca88 Mon Sep 17 00:00:00 2001 -From: Christian Stimming <[email protected]> -Date: Sun, 1 Apr 2018 23:27:06 +0200 -Subject: [PATCH 3/4] Error for lineedit when setting text - -Critical errors were logged when trying to set the gtkentry text when -value is null, test for this before setting entry text. - -Patch by Robert Fewell in gnucash 3f7d70ace3f35ce71e94eaf1707cd538a7a28f79 ---- - gui/gtk3/w_lineedit.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/gui/gtk3/w_lineedit.c b/gui/gtk3/w_lineedit.c -index 10bdd684..d93a0e02 100644 ---- a/gui/gtk3/w_lineedit.c -+++ b/gui/gtk3/w_lineedit.c -@@ -97,7 +97,8 @@ int Gtk3Gui_WLineEdit_SetCharProperty(GWEN_WIDGET *w, - - switch(prop) { - case GWEN_DialogProperty_Value: -- gtk_entry_set_text(GTK_ENTRY(g), value); -+ if (value && *value) -+ gtk_entry_set_text(GTK_ENTRY(g), value); - return 0; - default: - break; - -From 9c15c273e4c5ccbfd6c7930174ee936e92b9a63f Mon Sep 17 00:00:00 2001 -From: Christian Stimming <[email protected]> -Date: Sun, 1 Apr 2018 23:27:42 +0200 -Subject: [PATCH 4/4] Missing container add for textbrowser - -Needed to add gtk_container_add to add the text_view to the scroll -window. - -Patch by Robert Fewell in gnucash 9b120f95a975bd6a977a3f0485c54a9e4f08c597 ---- - gui/gtk3/w_textbrowser.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/gui/gtk3/w_textbrowser.c b/gui/gtk3/w_textbrowser.c -index 2cda4b73..54667ea3 100644 ---- a/gui/gtk3/w_textbrowser.c -+++ b/gui/gtk3/w_textbrowser.c -@@ -203,6 +203,7 @@ int Gtk3Gui_WTextBrowser_Setup(GWEN_WIDGET *w) { - /* create widget */ - gs=gtk_scrolled_window_new(NULL, NULL); - g=gtk_text_view_new(); -+ gtk_container_add(GTK_CONTAINER(gs), GTK_WIDGET(g)); - - if (s && *s) { - GWEN_BUFFER *tbuf;
