[arch-commits] Commit in gwget/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Thu Dec 27 17:47:58 UTC 2018


    Date: Thursday, December 27, 2018 @ 17:47:58
  Author: bgyorgy
Revision: 418519

upgpkg: gwget 1.0.4-15

Move the icon into the icons directory

Modified:
  gwget/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-27 17:35:01 UTC (rev 418518)
+++ PKGBUILD	2018-12-27 17:47:58 UTC (rev 418519)
@@ -6,13 +6,13 @@
 
 pkgname=gwget
 pkgver=1.0.4
-pkgrel=14
+pkgrel=15
 pkgdesc="Download manager for GNOME"
 arch=('x86_64')
 url="https://projects.gnome.org/gwget/"
 license=('GPL')
 depends=('gtk3' 'libnotify' 'wget')
-makedepends=('intltool')
+makedepends=('intltool' 'imagemagick')
 source=(https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
         gwget.appdata.xml
         gwget-1.0.4-notify-0.7.patch
@@ -56,6 +56,10 @@
   # Port to GSettings
   patch -Np1 -i ../gsettings-port.patch
 
+  # Install icon into icons directory
+  sed -i 's|$(datadir)/pixmaps|$(datadir)/icons/hicolor/48x48/apps|' pixmaps/Makefile.am
+  convert pixmaps/gwget-large.png +set date:create +set date:modify -background none -extent 200x200 pixmaps/gwget-large.png
+
   autoreconf -fi
 }
 
@@ -69,5 +73,8 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
+  install -dm755 "$pkgdir"/usr/share/icons/hicolor/{64x64,128x128}/apps/
+  convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 64x64 -alpha on "$pkgdir/usr/share/icons/hicolor/64x64/apps/gwget.png"
+  convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 128x128 -alpha on "$pkgdir/usr/share/icons/hicolor/128x128/apps/gwget.png"
   install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
 }



More information about the arch-commits mailing list