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

Balló György bgyorgy at archlinux.org
Fri Apr 16 16:04:13 UTC 2021


    Date: Friday, April 16, 2021 @ 16:04:13
  Author: bgyorgy
Revision: 919506

upgpkg: uget 2.2.3-2: Fix build

Added:
  uget/trunk/gcc10.patch
Modified:
  uget/trunk/PKGBUILD

-------------+
 PKGBUILD    |   20 ++++++++++++++------
 gcc10.patch |   11 +++++++++++
 2 files changed, 25 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-16 16:00:34 UTC (rev 919505)
+++ PKGBUILD	2021-04-16 16:04:13 UTC (rev 919506)
@@ -2,22 +2,30 @@
 
 pkgname=uget
 pkgver=2.2.3
-pkgrel=1
-pkgdesc="GTK+ download manager featuring download classification and HTML import"
+pkgrel=2
+pkgdesc='GTK download manager featuring download classification and HTML import'
 arch=('x86_64')
-url="https://ugetdm.com/"
+url='https://ugetdm.com/'
 license=('LGPL')
 depends=('libnotify' 'gtk3' 'gstreamer' 'curl')
 makedepends=('intltool')
 optdepends=('aria2: alternative backend')
-source=(https://downloads.sourceforge.net/urlget/$pkgname-$pkgver-1.tar.gz
-        uget-gtk.appdata.xml)
+source=("https://downloads.sourceforge.net/urlget/$pkgname-$pkgver-1.tar.gz"
+        'gcc10.patch'
+        'uget-gtk.appdata.xml')
 sha256sums=('11356e4242151b9014fa6209c1f0360b699b72ef8ab47dbeb81cc23be7db9049'
+            'f1f5cd7fbe57387178e107d4672d2b4550fe5f5200fc6ab139b6ee43ccf87093'
             'd6c341ef4c21b1312586e2342725be172507d128246a9ad88b2e8ef142140a5a')
 
+prepare() {
+  cd $pkgname-$pkgver
+  # Fix build with GCC 10
+  patch -Np1 -i ../gcc10.patch
+}
+
 build() {
   cd $pkgname-$pkgver
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+  ./configure --prefix=/usr
   make
 }
 

Added: gcc10.patch
===================================================================
--- gcc10.patch	                        (rev 0)
+++ gcc10.patch	2021-04-16 16:04:13 UTC (rev 919506)
@@ -0,0 +1,11 @@
+--- a/ui-gtk/UgtkBanner.h
++++ b/ui-gtk/UgtkBanner.h
+@@ -64,7 +64,7 @@
+ 		UgetRssFeed*    feed;
+ 		UgetRssItem*    item;
+ 	} rss;
+-} banner;
++};
+ 
+ void  ugtk_banner_init (UgtkBanner* banner);
+ 



More information about the arch-commits mailing list