[arch-commits] Commit in gcolor2/repos (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 21:23:45 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:23:44
  Author: felixonmars
Revision: 660387

archrelease: copy trunk to community-staging-x86_64

Added:
  gcolor2/repos/community-staging-x86_64/
  gcolor2/repos/community-staging-x86_64/PKGBUILD
    (from rev 660383, gcolor2/trunk/PKGBUILD)
  gcolor2/repos/community-staging-x86_64/gcolor2-0.4-amd64.patch
    (from rev 660385, gcolor2/trunk/gcolor2-0.4-amd64.patch)
  gcolor2/repos/community-staging-x86_64/gcolor2.desktop
    (from rev 660385, gcolor2/trunk/gcolor2.desktop)

-------------------------+
 PKGBUILD                |   45 +++++++++++++++++++++++++++++++++++++++++++++
 gcolor2-0.4-amd64.patch |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 gcolor2.desktop         |   11 +++++++++++
 3 files changed, 102 insertions(+)

Copied: gcolor2/repos/community-staging-x86_64/PKGBUILD (from rev 660383, gcolor2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:23:44 UTC (rev 660387)
@@ -0,0 +1,45 @@
+# Contributor: pressh <pressh funnysymbol gmail dot com>
+# Contributor: Eric Belanger <belanger at astro.umontreal.ca>
+# Contributor: shaun lastra <badicalia at gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=gcolor2
+pkgver=0.4
+pkgrel=9
+pkgdesc="A simple GTK+2 color selector"
+arch=('x86_64')
+url="http://gcolor2.sf.net/"
+license=('GPL')
+depends=('gtk2')
+makedepends=('perl-xml-parser')
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" \
+        gcolor2-0.4-amd64.patch gcolor2.desktop)
+md5sums=('02de9d925ad5921522685f402caec3ec'
+         '5791378f6f86dd25a302ad8586292dd6'
+         '1bbc11865df2a0529757cdbdf806b079')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+
+	[ "$CARCH" == "x86_64" ] && (patch -p1 < ../gcolor2-0.4-amd64.patch)
+
+	# fix fs#25904
+	sed -i 's/\[:space:\]/[&]/g' configure
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+	./configure --prefix=/usr
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+
+	make DESTDIR="${pkgdir}" install
+
+	# install desktop file
+	install -Dm644 "${srcdir}/gcolor2.desktop" \
+		"${pkgdir}/usr/share/applications/gcolor2.desktop"
+}

Copied: gcolor2/repos/community-staging-x86_64/gcolor2-0.4-amd64.patch (from rev 660385, gcolor2/trunk/gcolor2-0.4-amd64.patch)
===================================================================
--- community-staging-x86_64/gcolor2-0.4-amd64.patch	                        (rev 0)
+++ community-staging-x86_64/gcolor2-0.4-amd64.patch	2020-07-07 21:23:44 UTC (rev 660387)
@@ -0,0 +1,46 @@
+diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/callbacks.c gcolor2-0.4/src/callbacks.c
+--- gcolor2-0.4.orig/src/callbacks.c	2005-07-12 14:06:12.000000000 -0400
++++ gcolor2-0.4/src/callbacks.c	2007-02-17 19:19:38.000000000 -0500
+@@ -4,6 +4,9 @@
+ 
+ #include <gtk/gtk.h>
+ #include <stdio.h>
++#include <string.h>
++#include <glib.h>
++#include <glib/gprintf.h>
+ 
+ #include "callbacks.h"
+ #include "interface.h"
+@@ -172,6 +175,9 @@ void on_copy_color_to_clipboard_activate
+ 	gtk_clipboard_set_text (cb, hex, strlen (hex));
+ }
+ 
++void add_rgb_file (gchar *filename, gchar *type);
++gchar* get_system_file (void);
++
+ void on_show_system_colors_activate (GtkMenuItem *menuitem, gpointer user_data)
+ {
+ 	if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
+@@ -266,6 +272,8 @@ void on_save_button_clicked (GtkButton *
+ 	gtk_widget_destroy (savedialog);
+ }
+ 
++void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
++
+ void add_color_to_treeview ()
+ {
+ 	GtkTreeView      *treeview;
+diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
+--- gcolor2-0.4.orig/src/main.c	2005-07-11 10:55:49.000000000 -0400
++++ gcolor2-0.4/src/main.c	2007-02-17 19:18:23.000000000 -0500
+@@ -4,6 +4,10 @@
+ 
+ #include <gtk/gtk.h>
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
++#include <glib.h>
++#include <glib/gprintf.h>
+ 
+ #include "interface.h"
+ #include "support.h"

Copied: gcolor2/repos/community-staging-x86_64/gcolor2.desktop (from rev 660385, gcolor2/trunk/gcolor2.desktop)
===================================================================
--- community-staging-x86_64/gcolor2.desktop	                        (rev 0)
+++ community-staging-x86_64/gcolor2.desktop	2020-07-07 21:23:44 UTC (rev 660387)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Gcolor2
+GenericName=A simple GTK+2 color selector
+Comment=Choose colours from palette or screen
+Keywords=select;pick;detect;choose;colors;palette
+Exec=gcolor2
+Icon=/usr/share/pixmaps/gcolor2/icon.png
+Type=Application
+Terminal=false
+StartupNotify=true
+Categories=Graphics;



More information about the arch-commits mailing list