[arch-commits] Commit in ciano/trunk (2 files)

Balló György bgyorgy at archlinux.org
Wed Jul 8 16:01:20 UTC 2020


    Date: Wednesday, July 8, 2020 @ 16:01:20
  Author: bgyorgy
Revision: 661741

upgpkg: ciano 0.2.2-3: Various fixes

Added:
  ciano/trunk/0001-Add-support-for-conversion-and-selection-of-WEBP-ima.patch
Modified:
  ciano/trunk/PKGBUILD

-----------------------------------------------------------------+
 0001-Add-support-for-conversion-and-selection-of-WEBP-ima.patch |   76 ++++++++++
 PKGBUILD                                                        |   11 -
 2 files changed, 83 insertions(+), 4 deletions(-)

Added: 0001-Add-support-for-conversion-and-selection-of-WEBP-ima.patch
===================================================================
--- 0001-Add-support-for-conversion-and-selection-of-WEBP-ima.patch	                        (rev 0)
+++ 0001-Add-support-for-conversion-and-selection-of-WEBP-ima.patch	2020-07-08 16:01:20 UTC (rev 661741)
@@ -0,0 +1,76 @@
+From 62a8a740f0843822b2e39db3dd8c1ff68a785a3e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Wed, 8 Jul 2020 17:54:05 +0200
+Subject: [PATCH] Add support for conversion and selection of WEBP images
+
+---
+ src/Configs/Constants.vala               |  3 ++-
+ src/Controllers/ConverterController.vala | 10 +++++++++-
+ src/Widgets/SourceListSidebar.vala       |  4 +++-
+ 3 files changed, 14 insertions(+), 3 deletions(-)
+
+diff --git a/src/Configs/Constants.vala b/src/Configs/Constants.vala
+index 64143c9..e583155 100644
+--- a/src/Configs/Constants.vala
++++ b/src/Configs/Constants.vala
+@@ -73,7 +73,8 @@ namespace Ciano.Configs {
+         public abstract const string TEXT_TGA                               = "TGA";
+         public abstract const string TEXT_OGV                               = "OGV";
+         public abstract const string TEXT_WEBM                              = "WEBM";
++        public abstract const string TEXT_WEBP                              = "WEBP";
+         public abstract const string [] ABOUT_AUTHORS                       = { "Robert San <robertsanseries at gmail.com>" };
+         public abstract const Gtk.License ABOUT_LICENSE_TYPE                = Gtk.License.GPL_3_0;
+     }
+ }
+diff --git a/src/Controllers/ConverterController.vala b/src/Controllers/ConverterController.vala
+index b639d11..696f2bd 100644
+--- a/src/Controllers/ConverterController.vala
++++ b/src/Controllers/ConverterController.vala
+@@ -746,6 +746,9 @@ namespace Ciano.Controllers {
+                 case Constants.TEXT_TGA:
+                     formats = get_array_formats_image (Constants.TEXT_TGA);
+                     break;
++                case Constants.TEXT_WEBP:
++                    formats = get_array_formats_image (Constants.TEXT_WEBP);
++                    break;
+             }
+ 
+             return formats.data;
+@@ -948,7 +951,12 @@ namespace Ciano.Controllers {
+                 array.add (Constants.TEXT_TGA.up());
+             }
+ 
++            if(format_image != Constants.TEXT_WEBP) {
++                array.add (Constants.TEXT_WEBP);    
++                array.add (Constants.TEXT_WEBP.up());
++            }
++            
+             return array;
+         }
+     }
+ }
+diff --git a/src/Widgets/SourceListSidebar.vala b/src/Widgets/SourceListSidebar.vala
+index eeaba78..81cb7e8 100644
+--- a/src/Widgets/SourceListSidebar.vala
++++ b/src/Widgets/SourceListSidebar.vala
+@@ -150,6 +150,7 @@ namespace Ciano.Widgets {
+             var tif_item = new SourceList.Item (Constants.TEXT_TIF);
+             var gif_item = new SourceList.Item (Constants.TEXT_GIF);
+             var tga_item = new SourceList.Item (Constants.TEXT_TGA);
++            var webp_item = new SourceList.Item (Constants.TEXT_WEBP);
+ 
+             image_list.add (jpg_item);
+             image_list.add (bmp_item);
+@@ -157,8 +158,9 @@ namespace Ciano.Widgets {
+             image_list.add (tif_item);
+             image_list.add (gif_item);
+             image_list.add (tga_item);
++            image_list.add (webp_item);
+ 
+             this.type_list.add (image_list);
+         }
+     }
+ }
+-- 
+2.27.0
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-08 15:01:49 UTC (rev 661740)
+++ PKGBUILD	2020-07-08 16:01:20 UTC (rev 661741)
@@ -2,7 +2,7 @@
 
 pkgname=ciano
 pkgver=0.2.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Multimedia file converter focused on simplicity"
 arch=(x86_64)
 url="https://robertsanseries.github.io/ciano/"
@@ -13,12 +13,14 @@
         "0001-Handle-GIF-with-ImageMagick.patch"
         "0001-Create-output-directory-if-not-exist.patch"
         "0001-Use-standard-icon-names.patch"
-        "0001-Add-support-for-conversion-and-selection-of-OPUS-aud.patch")
+        "0001-Add-support-for-conversion-and-selection-of-OPUS-aud.patch"
+        "0001-Add-support-for-conversion-and-selection-of-WEBP-ima.patch")
 sha256sums=('49e648ff0d6f122057e6f15f7d3a3a451b005e296781d4f4d9816c8f0fcaa387'
             '8b44b7df58f82d0ff38572b773724b6f42e085fc1a1aa098776c794eb117b49d'
             'f682329bc9cbed2d0605b31e1cc4915c9a7e188bb398fed88001e892f44c50bb'
             'fb99403b4f6707454eef3f8552cded3e48e230dd4a118c7ada6e78e1a52fa3a4'
-            '0eb72a2e4ea2f83e25043396acdf5a090f554985ab4902e63363c0a1d30b4d36')
+            '0eb72a2e4ea2f83e25043396acdf5a090f554985ab4902e63363c0a1d30b4d36'
+            '4759a78664c2e406d41cdbf0b2187171a1383dd9dd6e3711bb969be9deea36b4')
 
 prepare() {
   cd $pkgname-$pkgver
@@ -32,8 +34,9 @@
   # Use standard icon names
   patch -Np1 -i ../0001-Use-standard-icon-names.patch
 
-  # Add support for conversion and selection of OPUS audios.
+  # Add support for more formats
   patch -Np1 -i ../0001-Add-support-for-conversion-and-selection-of-OPUS-aud.patch
+  patch -Np1 -i ../0001-Add-support-for-conversion-and-selection-of-WEBP-ima.patch
 }
 
 build() {



More information about the arch-commits mailing list