[arch-commits] Commit in uget/trunk (PKGBUILD disable-rss.patch)

Balló György bgyorgy at archlinux.org
Thu May 6 17:33:59 UTC 2021


    Date: Thursday, May 6, 2021 @ 17:33:59
  Author: bgyorgy
Revision: 928522

upgpkg: uget 2.2.3-3: Disable checking nonexistent RSS feeds

Added:
  uget/trunk/disable-rss.patch
Modified:
  uget/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   10 +++++++--
 disable-rss.patch |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-06 17:16:25 UTC (rev 928521)
+++ PKGBUILD	2021-05-06 17:33:59 UTC (rev 928522)
@@ -2,7 +2,7 @@
 
 pkgname=uget
 pkgver=2.2.3
-pkgrel=2
+pkgrel=3
 pkgdesc='GTK download manager featuring download classification and HTML import'
 arch=('x86_64')
 url='https://ugetdm.com/'
@@ -12,20 +12,26 @@
 optdepends=('aria2: alternative backend')
 source=("https://downloads.sourceforge.net/urlget/$pkgname-$pkgver-1.tar.gz"
         'gcc10.patch'
+        'disable-rss.patch'
         'uget-gtk.appdata.xml')
 sha256sums=('11356e4242151b9014fa6209c1f0360b699b72ef8ab47dbeb81cc23be7db9049'
             'f1f5cd7fbe57387178e107d4672d2b4550fe5f5200fc6ab139b6ee43ccf87093'
+            '8c4d97fff4f58a44c62e07c627fd09d868aa6801cff8775a9b8da83250175e1c'
             'd6c341ef4c21b1312586e2342725be172507d128246a9ad88b2e8ef142140a5a')
 
 prepare() {
   cd $pkgname-$pkgver
+
   # Fix build with GCC 10
   patch -Np1 -i ../gcc10.patch
+
+  # Disable checking nonexistent RSS feeds
+  patch -Np1 -i ../disable-rss.patch
 }
 
 build() {
   cd $pkgname-$pkgver
-  ./configure --prefix=/usr
+  ./configure --prefix=/usr --disable-rss-notify
   make
 }
 

Added: disable-rss.patch
===================================================================
--- disable-rss.patch	                        (rev 0)
+++ disable-rss.patch	2021-05-06 17:33:59 UTC (rev 928522)
@@ -0,0 +1,56 @@
+diff --git a/ui-gtk/UgtkApp.c b/ui-gtk/UgtkApp.c
+index c62bd51..361adbb 100644
+--- a/ui-gtk/UgtkApp.c
++++ b/ui-gtk/UgtkApp.c
+@@ -62,7 +62,6 @@ void  ugtk_app_init (UgtkApp* app, UgetRpc* rpc)
+ 	uget_app_set_config_dir ((UgetApp*) app, dir);
+ 	g_free (dir);
+ 
+-	app->rss_builtin = uget_rss_new ();
+ 	ugtk_app_load (app);
+ 	ugtk_app_init_ui (app);
+ 	ugtk_app_init_callback (app);
+@@ -88,11 +87,6 @@ void  ugtk_app_init (UgtkApp* app, UgetRpc* rpc)
+ 
+ 	app->recent.category_index = 0;
+ 	app->recent.info = ug_info_new(8, 0);
+-	// RSS
+-	uget_rss_add_builtin (app->rss_builtin, UGET_RSS_STABLE);
+-	uget_rss_add_builtin (app->rss_builtin, UGET_RSS_NEWS);
+-	uget_rss_add_builtin (app->rss_builtin, UGET_RSS_TUTORIALS);
+-	uget_rss_update (app->rss_builtin, FALSE);
+ 	gtk_widget_hide (app->banner.self);
+ 
+ 	uget_app_use_uri_hash ((UgetApp*) app);
+@@ -118,7 +112,6 @@ void  ugtk_app_final (UgtkApp* app)
+ 	else
+ 		shutdown_now = FALSE;
+ 	ug_info_unref(app->recent.info);
+-	uget_rss_unref (app->rss_builtin);
+ 	uget_app_final ((UgetApp*) app);
+ 	// plug-in finalize
+ 	uget_plugin_global_set(UgetPluginAria2Info, UGET_PLUGIN_ARIA2_GLOBAL_SHUTDOWN_NOW,
+@@ -140,11 +133,6 @@ void  ugtk_app_save (UgtkApp* app)
+ 	ugtk_setting_save (&app->setting, file);
+ 	g_free (file);
+ 
+-	// RSS
+-	file = g_build_filename (app->config_dir, "RSS-built-in.json", NULL);
+-	uget_rss_save_feeds (app->rss_builtin, file);
+-	g_free (file);
+-
+ //	uget_app_save_categories ((UgetApp*) app, ugtk_get_config_dir ());
+ 	uget_app_save_categories ((UgetApp*) app, NULL);
+ }
+@@ -166,11 +154,6 @@ void  ugtk_app_load (UgtkApp* app)
+ 		                7*24 - app->setting.scheduler.state.length);
+ 	}
+ 
+-	// RSS
+-	file = g_build_filename (app->config_dir, "RSS-built-in.json", NULL);
+-	uget_rss_load_feeds (app->rss_builtin, file);
+-	g_free (file);
+-
+ //	uget_app_load_categories ((UgetApp*) app, ugtk_get_config_dir ());
+ 	counts = uget_app_load_categories ((UgetApp*) app, NULL);
+ 	if (counts == 0)



More information about the arch-commits mailing list