1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Aaron, phrakture, Griffin <aaron@archlinux.org>
4 # Contributor: erkaN kaplaN <erkan@linux-sevenler.org>
5 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
10 pkgdesc='Download manager for GNOME'
12 url='https://gitlab.gnome.org/Archive/gwget'
14 depends=('gtk3' 'libnotify' 'wget')
15 makedepends=('intltool' 'imagemagick')
16 source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
18 'gwget-1.0.4-notify-0.7.patch'
19 'gwget-1.0.4-glib-2.32.patch'
20 'drop-libgnomeui.patch'
24 'gsettings-port.patch')
25 sha256sums=('a65b2b2b3befb6cf34a697a13111b35498a6d63f9a9b048a22b8654f35ef643f'
26 'd65a5d86ea3cb80f6058a2134010137a3ff465373a028f983a83065d0267368e'
27 '84efbbea9c2a91c60288edb67264bbdb4ec2c579cf95b3baa8282040a1b65c76'
28 '319c4795d0034c4adacf302db697d966ca228fc1bbe9778af9dadcfb0c2531c8'
29 '019fae87e984d22cd1bbe7b3fc064c936a76658ef98cbf96f7ba1c10678ac585'
30 'e85e3eeb091bd88bf11866c6256cd36c375f456d07599a9e6a15400fa26546f8'
31 '3900defbf161a657ef3968a0aa1df27605e1fbf6fc34d0fcba748ce274fa4f3c'
32 '9e45add4dbdaa397de4aa985887e722e97541fbc59cec4dfa82287efc695ee87'
33 'a62fdc10d63772b5d484192184812265574644518e31cb573090b1c657e28ef5')
38 # https://bugzilla.gnome.org/show_bug.cgi?id=634170
39 patch -Np1 -i ../gwget-1.0.4-notify-0.7.patch
41 # https://bugzilla.gnome.org/show_bug.cgi?id=665286
42 patch -Np1 -i ../gwget-1.0.4-glib-2.32.patch
44 # https://bugzilla.gnome.org/show_bug.cgi?id=671759
45 patch -Np1 -i ../drop-libgnomeui.patch
48 patch -Np1 -i ../gtk3-port.patch
50 # Fix with recent wget versions
51 patch -Np1 -i ../wget.patch
53 # Set fallback destination path properly, don't try to start downloading existing URL
54 patch -Np1 -i ../various-fixes.patch
57 patch -Np1 -i ../gsettings-port.patch
59 # Install icon into icons directory
60 sed -i 's|$(datadir)/pixmaps|$(datadir)/icons/hicolor/48x48/apps|' pixmaps/Makefile.am
61 convert pixmaps/gwget-large.png +set date:create +set date:modify -background none -extent 200x200 pixmaps/gwget-large.png
62 convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 64x64 -alpha on pixmaps/gwget-64.png
63 convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 128x128 -alpha on pixmaps/gwget-128.png
70 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
71 ./configure --prefix=/usr \
72 --disable-schemas-compile
78 make DESTDIR="$pkgdir" install
79 install -Dm644 pixmaps/gwget-64.png "$pkgdir/usr/share/icons/hicolor/64x64/apps/gwget.png"
80 install -Dm644 pixmaps/gwget-128.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/gwget.png"
81 install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"